Is it possible to ship only specific statements from a log file, to be indexed on Splunk rather than indexing the entire log file?
For example, let's say I have a log file that contains some data about a failed process. If there was a 1 line statement in this log file that told me the time that process failed, would it be possible to index that line of data and not the entire log file? how would that be done?
Thank you in advance!
Hi @asamurphy,
yes, you can filter your events taking only the ones you need and discarding the others, the procedure is described at https://docs.splunk.com/Documentation/Splunk/8.2.6/Forwarding/Routeandfilterdatad#Filter_event_data_...
Ciao.
Giuseppe
Hi @asamurphy,
yes, you can filter your events taking only the ones you need and discarding the others, the procedure is described at https://docs.splunk.com/Documentation/Splunk/8.2.6/Forwarding/Routeandfilterdatad#Filter_event_data_...
Ciao.
Giuseppe
Hi @asamurphy,
good for you, see next time!
Ciao and happy splunking
Giuseppe
P.S.: Karma Points are appreciated 😉