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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...