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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...