<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk and Different Timezones in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-and-Different-Timezones/m-p/125202#M25825</link>
    <description>&lt;P&gt;You would need to update the props.conf on Splunk INdexer (or heavy forwarder). See the last answer in the post &lt;A href="http://answers.splunk.com/answers/27312/setting-other-tz-in-propsconf"&gt;"http://answers.splunk.com/answers/27312/setting-other-tz-in-propsconf"&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2014 13:17:05 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-04-09T13:17:05Z</dc:date>
    <item>
      <title>Splunk and Different Timezones</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-and-Different-Timezones/m-p/125201#M25824</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a scenario where I am indexing event logs from Windows servers across 5 different time zones:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Australia/Queensland&lt;/LI&gt;
&lt;LI&gt;Australia/NSW&lt;/LI&gt;
&lt;LI&gt;NZ&lt;/LI&gt;
&lt;LI&gt;Australia/South&lt;/LI&gt;
&lt;LI&gt;Australia/Victoria&lt;/LI&gt;
&lt;LI&gt;Australia/West&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;All of the servers are sending their security log to forwarders and from there they are sent to the indexers. So I've got an issue where when I search logs in real time nothing is showing up, I've got to look forwarder 2 hours or backward 2 hours to see logs coming in. I'm trying to figure out how on a forwarder I can set the TZ for specific servers. Looking at &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.1.8/admin/ApplyTimezoneOffsetstotimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/4.1.8/admin/ApplyTimezoneOffsetstotimestamps&lt;/A&gt;, it looks like it should be simple but I can't seem to figure it out.&lt;/P&gt;

&lt;P&gt;Is there something I can put on the UniversalForwarder config or on the Indexer that will allow me to apply a Time Zone to specific servers? Reading the article above it seems to suggest the Time Zone should be that of the server sending the data. But they all hit the props stanza [WinEventLog://Security] so I'm a bit stuck.&lt;/P&gt;

&lt;P&gt;My forwarder configuration is as follows.&lt;/P&gt;

&lt;H2&gt;inputs.conf&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunktcp://9997]
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H2&gt;props.conf&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Security]
TRANSFORMS-security = security_null, security_truncate, security_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H2&gt;transforms.conf&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt;[security_null]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[security_truncate]
REGEX = (?msi)(.*)(This event is generated|Certificate information is only provided)
DEST_KEY = _raw
FORMAT = $1

[security_index]
REGEX = (?msi)^EventCode=(list of event Id's removed for brevity)\D
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Everything is working excellent, except how can I specify a different timezone for different servers in the props.conf if the stanza is looking for [WinEventLog:Security]?&lt;/P&gt;

&lt;P&gt;The configuration for the servers is all identical.&lt;/P&gt;

&lt;H2&gt;inputs.conf&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt; [WinEventLog://Security]
 checkpointInterval = 5
 current_only = 1
 disabled = 0
 index = security
 start_from = oldest
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H2&gt;outputs.conf&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt; [tcpout]
 defaultGroup = forwarder_9997

 [tcpout:forwarder_9997]
 server = forwarder:9997

 [tcpout-server://forwarder:9997]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Apr 2014 00:28:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-and-Different-Timezones/m-p/125201#M25824</guid>
      <dc:creator>conor_splunk</dc:creator>
      <dc:date>2014-04-09T00:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk and Different Timezones</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-and-Different-Timezones/m-p/125202#M25825</link>
      <description>&lt;P&gt;You would need to update the props.conf on Splunk INdexer (or heavy forwarder). See the last answer in the post &lt;A href="http://answers.splunk.com/answers/27312/setting-other-tz-in-propsconf"&gt;"http://answers.splunk.com/answers/27312/setting-other-tz-in-propsconf"&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 13:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-and-Different-Timezones/m-p/125202#M25825</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-09T13:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk and Different Timezones</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-and-Different-Timezones/m-p/125203#M25826</link>
      <description>&lt;P&gt;Well it seems to be working at the moment.&lt;/P&gt;

&lt;P&gt;I added:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::PERTH*]
TZ = Australia/Perth
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So the server is this time zone is now reporting the right times. But...another server in another TZ which is still on the default stanza in props.conf is not having any issues either. So I can't tell if it was just a case of the forwarder and/or indexer playing catch up or if the setting fixed it.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 05:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-and-Different-Timezones/m-p/125203#M25826</guid>
      <dc:creator>conor_splunk</dc:creator>
      <dc:date>2014-04-14T05:09:16Z</dc:date>
    </item>
  </channel>
</rss>

