Splunk Search

How and where do I filter logs with regex before indexing?

SridharS
Path Finder

I have a .txt log file and it has many patterns in it. I need logs of only a particular pattern. How and where can I filter them using regex?

Tags (3)
0 Karma

MuS
Legend

Hi SridharS,

read the docs http://docs.splunk.com/Documentation/Splunk/6.3.1511/Forwarding/Routeandfilterdatad#Filter_event_dat... about Filter event data and send to queues where you can learn how this can be done. You have to do this either on the indexer or a heavy weight forwarder - don't forget to restart Splunk after the changes and it will only apply to new events.

Hope this helps ...

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...