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!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...