Getting Data In

Removal of unnecessary fields BEFORE INDEX

davidepala
Path Finder

Hi all!
There is a way to prevent the indexing of unnecessary fields? i'm indexing a syslog file from a firewall so i can do this at syslog server side but if it's possible I'd rather do it in splunk.

Tags (1)
0 Karma
1 Solution

niketn
Legend

@davidepala you can have a scripted input to push only required data/fields to Splunk.
You can also use REGEX or SEDCMD to find regular expression based pattern and replace with space.

https://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedata

If you have to omin entire event from being indexed you can use nullqueue

http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Filter_event_data_...

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

0 Karma

niketn
Legend

@davidepala you can have a scripted input to push only required data/fields to Splunk.
You can also use REGEX or SEDCMD to find regular expression based pattern and replace with space.

https://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedata

If you have to omin entire event from being indexed you can use nullqueue

http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Filter_event_data_...

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

davidepala
Path Finder

TOP, you've save my day! tnx man!!!

0 Karma

niketn
Legend

@davidepala, anytime. Please accept the answer if it helped. Do let us know if you need further help 🙂

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

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 ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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 ...