Getting Data In

Filter data by condition on a heavy forwarder

aalaa
Path Finder

Hello ,

Please i need to filter data on the heavy forwrader to eliminate some logs ,
Exemple : i need to ingnore logs which contains the fields TYPE=PERMIT with the PROTOCOL=HTTP
it's work good to eliminate the log which contains the TYPE=PERMIT but i need to ignore just the TYPE=PERMIT with the PROTOCOL=HTTPS

transforms.conf

[setnull]
REGEX = >PERMIT<
DEST_KEY = queue
FORMAT = nullQueue

0 Karma

somesoni2
Revered Legend

Your REGEX should search for both fields, so it necessary to know in which order they appear in your raw data and if your data is multiline. If it's single line and TYPE=PERMIT comes before PROTOCOL=HTTPS, then you could do REGEX = \>PERMIT\<.+\>HTTPS\< but again, more accurate answers can be given if you share some sample data.

0 Karma

harsmarvania57
Ultra Champion

Can you please post some sample events (Mask sensitive data) ?

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...