Getting Data In

Time field extraction

pankajupadhyay
Path Finder

Hi,

How we can extract time from the log event and then index ?

As Splunk shows different time stamp on indexer but time stamp in log event are different.

 

Please help.

 

 

 

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @pankajupadhyay,

probably Splunk cannot correctly recognize timestamps, so you have to give to Splunk some additional information, for a sourcetype:

  • TIME_FORMAT
  • TIME_PREFIX
  • MAX_TIMESTAMP_LOOKAHEAD
  • etc...

you can find more infos at https://docs.splunk.com/Documentation/Splunk/8.1.1/Data/Configuretimestamprecognition

If you share some sample of your data I could help you in this job.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...