cancel
Showing results for 
Search instead for 
Did you mean: 

Extract Logs for selected processes using Data Gateway

ManishRawat
Level 7
Hi Team,

We have 3 processes in the system
1. Test_Process_1
2.Test_Process_2
3. Test Process 3

I want to extract the logs of only Test_Process_1 and Test_Process_2 using DataGatway, I tried with below output configurations:

A:
24591.png
B:
24592.png
C:
24593.png

But all are displaying the same result in DataGateway process through control room:
24594.png

Can anyone suggest the right output configuration that I have to use?

------------------------------
Manish Rawat
Project Manager
Mercer
New Delhi
------------------------------
1 REPLY 1

PritamPoojari
Level 6
Hi Manish

Can you test if it works for one of the processes ? 

if [event][EventType] == 1 and [event][EventData][ProcessName] == "Replace with name of your process" {

file {

path => "c:\allevents.txt"

codec => line { format => "%{event}"}

}

}

Once you get it working then see if using OR clause works?

if [event][EventType] == 1 and (([event][EventData][ProcessName] == "process1") or ([event][EventData][ProcessName] == "process2")) {

Regards
Pritam



------------------------------
Pritam Poojari
Solution Architect
Capgemini
Europe/London
------------------------------