Getting Data In

Why is Event Log time and Indexed time different?

Atchyuth_P
Path Finder

hi,

Please check with below screenshot

Atchyuth_P_1-1659577705527.png

The indexed time and event log time both are different. Kindly let me know the solution to fix this error.

 

 

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @Atchyuth_P,

anyway, please try in your props.conf:

[your_sourcetype]
TIME_PREFIX = ^\d+\.\d+\.\d+\.\d+\s+w\s+\w+\s+\[
TIME_FORMAT = %Y-%m-%d \s+\H:|M:|S.%6N
MAX_TIMESTAMP_LOOKAHEAD = 26

This props.conf must be located on Indexers or (if present) On Heavy Forwarders.

Ciao.

Giuseppe

View solution in original post

wapese3400
Loves-to-Learn

DSCN0012.jpg

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Atchyuth_P,

this means thet there's a parsing error.

Could your share a sample of your logs to find the correct configuration?

Ciao.

Giuseppe

Atchyuth_P
Path Finder

Hi @gcusello 

Please check the below screenshot for reference.

Atchyuth_P_0-1659666952599.png

I have applied the MAX_DAYS_AGO setting in Splunk it identified the Y-m-d but was unable to find out the exact hours, minutes, seconds 

Atchyuth_P_1-1659667143760.png

I have tried with the TZ setting but was unable to solve it.

Please help

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Atchyuth_P,

anyway, please try in your props.conf:

[your_sourcetype]
TIME_PREFIX = ^\d+\.\d+\.\d+\.\d+\s+w\s+\w+\s+\[
TIME_FORMAT = %Y-%m-%d \s+\H:|M:|S.%6N
MAX_TIMESTAMP_LOOKAHEAD = 26

This props.conf must be located on Indexers or (if present) On Heavy Forwarders.

Ciao.

Giuseppe

gcusello
SplunkTrust
SplunkTrust

Hi @Atchyuth_P,

please share your logs as text in the "Insert/Edit Code Sample" otherwise I cannot use them.

Ciao.

Giuseppe

0 Karma

chaker
Contributor

Hello,

You will need to provide timestamp extraction settings to correctly identify that time stamp, if none of the pre trained source types are picking it up.

I suggest you try to add that data using different sourcetypes in the data preview tool, to see which on extracts your time stamp, then use that setting in your own sourcetype settings.

https://docs.splunk.com/Documentation/Splunk/9.0.0/Data/HowSplunkextractstimestamps

https://docs.splunk.com/Documentation/Splunk/9.0.0/Admin/Propsconf#Timestamp_extraction_configuratio...

Atchyuth_P
Path Finder

Hi @chaker 

 

Thank you so much. I have learned a lot about Splunk while watching your videos and those helped me to shift my career transition.

Please check the below screenshot for reference.

Atchyuth_P_1-1659667441524.png

I have applied the MAX_DAYS_AGO setting in Splunk it identified the Y-m-d but was unable to find out the exact hours, minutes, seconds

Atchyuth_P_2-1659667567922.png

I have tried with the TZ setting but was unable to solve it.

Please help

 

0 Karma

chaker
Contributor
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...