Getting Data In

Index only rows that match a pattern

jiaqya
Builder

i have a file with following pattern : SERVICESTATE::CRITICAL , which updates everyday.
this file also has many other rows which does not have the above pattern.
i would like to only index the rows that match this pattern.
could i get help on how this can be done...

thanks,
john.

Tags (1)
0 Karma

somesoni2
Revered Legend

You believe you want to do - "Keep specific events and discard the rest". So follow instruction from below link and use appropriate REGEX for your pattern.

http://docs.splunk.com/Documentation/Splunk/7.1.1/Forwarding/Routeandfilterdatad#Keep_specific_event...

0 Karma
Get Updates on the Splunk Community!

Application management with Targeted Application Install for Victoria Experience

  Experience a new era of flexibility in managing your Splunk Cloud Platform apps! With Targeted Application ...

Index This | What goes up and never comes down?

January 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Splunkers, Pack Your Bags: Why Cisco Live EMEA is Your Next Big Destination

The Power of Two: Splunk + Cisco at "Ludicrous Scale"   You know Splunk. You know Cisco. But have you seen ...