Getting Data In

Splunk indexing data incorrect

LeandroKopke
Explorer

I'm having trouble indexing my logs.
After investigations, I noticed that the splunk started indexing the data with the wrong date. Our log has the format dd /mm/yy, while splunk since last week began interpreting the dates as mm yy/dd, playing data from 04/18/19 to 04/19/18 - April 19, 2018 .
How can I fix this?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

You need to specify the TIME_FORMAT attribute for that sourcetype in props.conf. In fact, it's a Best Practice to specify TIME_FORMAT for all sourcetypes to prevent this type of problem.
The data already indexed cannot be changed.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...