Splunk Search

Why don't timestamp and _time match in search?

brennson90
Path Finder

Hi,

i'm currently working on a props.conf and have different values from _time and the timestamp in my logs. What did i wrong? Thanks in advance.

2023-01-24T13:00:23+00:00 avx.local0.notice {"host":"xx-xx-xxxxx-xxxx-xxxxx-x-xx-000x-xxxxx-xxxx-xx.xxx.xxx.xxx","ident":"syslog","message":"xx:xx.xxxxxx+xx:xx xx-xx-xxxxxx-xxxx-xxxxxxx-x-xx-xxxx-xxxxx-hagw-xx.xxxx.xxx.xxxx

From Splunk search the values are the following:

timestamp: 2023-01-24T13:00:19.141113233, _time: 2023-01-24T14:00:23.000+01:00
My props.conf is the following:

[s3:Test]
TIME_FORMAT = %Y-%m-%dT%H:%M:%S%z
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 26
TRUNCATE = 10000
SHOULD_LINEMERGE = false

Labels (1)
Tags (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @brennson90,

probably the issue is the wrong timezone identifier, you should use %:z

TIME_FORMAT = %Y-%m-%dT%H:%M:%S%:z

as you can read at https://docs.splunk.com/Documentation/SCS/current/Search/Timevariables

Ciao.

Giuseppe

 

View solution in original post

brennson90
Path Finder

Thank you Giuseppe.

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @brennson90,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @brennson90,

probably the issue is the wrong timezone identifier, you should use %:z

TIME_FORMAT = %Y-%m-%dT%H:%M:%S%:z

as you can read at https://docs.splunk.com/Documentation/SCS/current/Search/Timevariables

Ciao.

Giuseppe

 

Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...