Getting Data In

Monitor File shows GMT not local time

hartfoml
Motivator

I am collecting syslog using syslog-ng. the events collected in the file are showing GMT.

When I setup a file monitor for the events they are indexed in the future.

What is the best way to handle this using the sourcetype=syslog?

Tags (3)
0 Karma
1 Solution

jtrucks
Splunk Employee
Splunk Employee

in your syslog sourcetype stanza in the props.conf, add:

TZ = UTC

If you don't have one in your local/props.conf, they just add:

[syslog]
TZ = UTC

Then restart the indexer.

--
Jesse Trucks
Minister of Magic

View solution in original post

jtrucks
Splunk Employee
Splunk Employee

in your syslog sourcetype stanza in the props.conf, add:

TZ = UTC

If you don't have one in your local/props.conf, they just add:

[syslog]
TZ = UTC

Then restart the indexer.

--
Jesse Trucks
Minister of Magic

jtrucks
Splunk Employee
Splunk Employee

Yes. If you need it only for a certain source, use your syslog config to break that out to a separate file or directory tree. Then set up a new source to set the TZ on that source only.

--
Jesse Trucks
Minister of Magic
0 Karma

hartfoml
Motivator

thanks I am in a distributed environment and I cant (am not allowed to) restart the indexers during working hours.

Also wont this change the timestamp for all syslog not just my new one?

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...