Getting Data In

timestamp question

a212830
Champion

hI,

Setting up a syslog feed and run into something that I haven't yet:

2014-03-17T02:02:26-04:00

What does the T stand for? The time is one hour behind the current timestamp, so I'm assuming that it's a timezone?

Tags (1)
0 Karma

starcher
Influencer

http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf?r=splunky
If Splunk is not auto detecting the timezone, you can force the timezone for a sourcetype as shown in the props documentation linked above; look for TZ =

starcher
Influencer

T stands for time. the timezone adjustment is the -4:00 at the end.

0 Karma

a212830
Champion

Don't want to do it without props - trying to follow the recommended guidelines - configuring time_zone, time_format....

Here's what I have:

[acme_syslog]
MAX_TIMESTAMP_LOOKAHEAD = 30
NO_BINARY_CHECK = 1
TIME_FORMAT = %y-%m-%dT%H:%M:%S
SHOULD_LINEMERGE = false
TIME_PREFIX = ^
LINE_BREAKER = ([\r\n]+)
TZ = US/Central

0 Karma

somesoni2
Revered Legend

Splunk can process this format without any props.conf configuration.

0 Karma

a212830
Champion

Thanks. I looked at the doc, but I'm still unclear. How would you reference the T? Or would you reference the -4:00?

0 Karma

a212830
Champion

So, how would I configure that in props.conf?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...