Getting Data In

Automatically reject data when timestamp could not be assigned

guilmxm
Influencer

Hi All,

Does anyone knows a way to automatically reject data when Splunk could not identify event timestamp ?

My goal is to radically prevent inconsistent data to be indexed, if the timestamp could not be identified then this should be considered as an anomaly and the data would be sent to nullqueue (for example) instead of being indexed.

Is that possible ?

Thanks for your help

Guilhem

0 Karma
1 Solution

yannK
Splunk Employee
Splunk Employee

You can create 2 transforms to apply to your data in this order :

  • the first one drop all the events to nullQueue
  • the second look for a regex matching a valid timestamp pattern, and send them back to the indexQueue.

Read this guide "Keep_specific_events_and_discard_the_rest"
http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Keep_specific_even... can add a nullQueue filter that looks for a particular pattern of timestamp, and drop the events it's missing one.
PS : it will happen after the linebreaking and event merging.

View solution in original post

yannK
Splunk Employee
Splunk Employee

You can create 2 transforms to apply to your data in this order :

  • the first one drop all the events to nullQueue
  • the second look for a regex matching a valid timestamp pattern, and send them back to the indexQueue.

Read this guide "Keep_specific_events_and_discard_the_rest"
http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Keep_specific_even... can add a nullQueue filter that looks for a particular pattern of timestamp, and drop the events it's missing one.
PS : it will happen after the linebreaking and event merging.

guilmxm
Influencer

Hi Yann,
Thanks, that's in deed the way to proceed

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...