Getting Data In

Issues with timestamps

MickSheppard
Path Finder

I'm trying to get Splunk to index the output from the Connect:Enterprise cmulist command. I run the command periodically and filter out the rubbish just leaving me with the lines that count. This gives me one line per entry and with the following date format from around character 65.

11/07/06-07:00

This is yy/mm/dd-HH:MM so I've set TIME_FORMAT for this data source to %y/%m/%d-%H:%M. This appeared to be working but I noticed some missing records and finally found them away in 2006.

I set the TIME_FORMAT value in my etc/system/local/props.conf.

I'm also seeing that occasionally it doesn't bother using the date/time in the record instead it uses current time. It then clumps all of the lines together in a single entry.

Anyone any tips on how I fix these problems, short of using perl to reformat the input into a format that Splunk can reliably process?

0 Karma
1 Solution

dwaddle
SplunkTrust
SplunkTrust

Have you experimented with MAX_TIMESTAMP_LOOKAHEAD and TIME_PREFIX as well? These two help to key Splunk in on a specific area of the event text for which to apply your TIME_FORMAT.

If you can provide some sample (redacted) data, that could help narrow down why Splunk isn't picking up the time like you were expecting.

You could always pop on #splunk on EFNet IRC and discuss this there. Again, with some sample data, this should be fairly easy to work out.

View solution in original post

dwaddle
SplunkTrust
SplunkTrust

Have you experimented with MAX_TIMESTAMP_LOOKAHEAD and TIME_PREFIX as well? These two help to key Splunk in on a specific area of the event text for which to apply your TIME_FORMAT.

If you can provide some sample (redacted) data, that could help narrow down why Splunk isn't picking up the time like you were expecting.

You could always pop on #splunk on EFNet IRC and discuss this there. Again, with some sample data, this should be fairly easy to work out.

MickSheppard
Path Finder

I played with MAX_DAYS_AGO and MAX_DAYS_HENCE and now it seems to be working without any issues.

0 Karma
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...