<?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: indexing multiple timezone data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210731#M41514</link>
    <description>&lt;P&gt;So many things (exceptions) are changing in the pipeline lately (e.g. &lt;CODE&gt;INDEXED_ETRACTIONS&lt;/CODE&gt;) that I am starting to feel like I need to re-evaluate everything that I think I know).  In any case, I will take your word for it that this will for sure need a Heavy Forwarder (indexing twice) to make A1 work.&lt;/P&gt;</description>
    <pubDate>Sun, 01 Nov 2015 18:03:40 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-11-01T18:03:40Z</dc:date>
    <item>
      <title>indexing multiple timezone data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210723#M41506</link>
      <description>&lt;P&gt;We currently have 4 servers that send data to the Splunk indexer. Each server is located in different time zone,  Our indexer is in CST timezone. We want to index the data in CST  time. Is there anyway it can be before indexing  the data. &lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2015 19:25:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210723#M41506</guid>
      <dc:creator>tmuthuk</dc:creator>
      <dc:date>2015-10-30T19:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: indexing multiple timezone data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210724#M41507</link>
      <description>&lt;P&gt;Your question is not specific enough to give you a specific answer but let me cover all the bases.&lt;/P&gt;

&lt;P&gt;Q1:&lt;BR /&gt;
How do I modify the raw data so that the timestamp is converted to CST?&lt;BR /&gt;
A1:&lt;BR /&gt;
Use this solution while discriminating with &lt;CODE&gt;host-based&lt;/CODE&gt; stanza headers in &lt;CODE&gt;props.conf&lt;/CODE&gt; (each host is in a particular timezone so you know how to modify the timestamp for particular TZs).&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Anonymizedatausingconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Anonymizedatausingconfigurationfiles&lt;/A&gt;&lt;BR /&gt;
Be sure to also see Q2/A2 and specify &lt;CODE&gt;TZ=CST&lt;/CODE&gt; now that you have munged all timestamps to that TZ (you can use a &lt;CODE&gt;[default]&lt;/CODE&gt; insteiad of &lt;CODE&gt;host-based&lt;/CODE&gt; stanza header).&lt;BR /&gt;
This might have to be done with a Heavy Forwarder (Index twice).&lt;/P&gt;

&lt;P&gt;Q2:&lt;BR /&gt;
How do I ensure that Splunk knows what TZ goes with which host so that events get timestamped correctly?&lt;BR /&gt;
A2:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/data/Applytimezoneoffsetstotimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/latest/data/Applytimezoneoffsetstotimestamps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Q3:&lt;BR /&gt;
How do I make sure that Splunk normalizes my environment so that I can specify &lt;CODE&gt;TimePicker&lt;/CODE&gt; values in my local time and see events with times displayed in my local time?&lt;BR /&gt;
A3:&lt;BR /&gt;
There is a user/login-level setting that tells Splunk how to normalize timestamps when presenting data to each user. It is in &lt;CODE&gt;Settings&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Edit Account&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Times zone&lt;/CODE&gt;.  Once this is set, the &lt;CODE&gt;TimePicker&lt;/CODE&gt; part is solved.  This normalized time is shown only if you select &lt;CODE&gt;List&lt;/CODE&gt; or &lt;CODE&gt;Table&lt;/CODE&gt; (e.g. not &lt;CODE&gt;Raw&lt;/CODE&gt;) in the upper-left corner control which is above the search results.  Doing so adds a &lt;CODE&gt;Time&lt;/CODE&gt; column next to the &lt;CODE&gt;Event&lt;/CODE&gt; column showing &lt;CODE&gt;_time&lt;/CODE&gt; normalized to your TZ for each event.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2015 19:49:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210724#M41507</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-30T19:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: indexing multiple timezone data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210725#M41508</link>
      <description>&lt;P&gt;The best thing to do is to add timezone information to the events at the source. Instead of &lt;CODE&gt;2015-10-31 14:15:16.123&lt;/CODE&gt;, make it produce &lt;CODE&gt;2015-10-31 14:15:16.123 -0500&lt;/CODE&gt;. Then Splunk will automagically do the right thing.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2015 00:14:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210725#M41508</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-11-01T00:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: indexing multiple timezone data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210726#M41509</link>
      <description>&lt;P&gt;A1 cannot work, regex replacements happen after timestamp extraction.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2015 00:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210726#M41509</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-11-01T00:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: indexing multiple timezone data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210727#M41510</link>
      <description>&lt;P&gt;"Best" is certainly debatable in the broadest sense.  Doing this adds several bytes to each message and costs license and disk space.  Granted, it is the most foolproof way to ensure correct timestamping.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2015 03:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210727#M41510</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-01T03:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: indexing multiple timezone data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210728#M41511</link>
      <description>&lt;P&gt;Have you tried this (recently) or can you point to documentation to back up this claim?  The reason I ask (I have not tested it) is because &lt;CODE&gt;SEDCMD&lt;/CODE&gt; happens before indexing (that is the whole point) and because some &lt;CODE&gt;timestamping&lt;/CODE&gt; does (can) happen later or else &lt;CODE&gt;TZ_ALIAS&lt;/CODE&gt; could not work.  The fact that it does work very heavily implies that &lt;CODE&gt;_raw&lt;/CODE&gt; finalizes before &lt;CODE&gt;date_zone&lt;/CODE&gt; does.  If so, then A1 can work.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2015 03:29:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210728#M41511</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-01T03:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: indexing multiple timezone data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210729#M41512</link>
      <description>&lt;P&gt;Timestamp extraction happens in the merging pipeline, while regexreplacement happens after that in the typing pipeline.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://wiki.splunk.com/Community:HowIndexingWorks"&gt;https://wiki.splunk.com/Community:HowIndexingWorks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2015 12:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210729#M41512</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-11-01T12:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: indexing multiple timezone data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210730#M41513</link>
      <description>&lt;P&gt;I'd take reliable timestamps over a few bytes of license any day of the week.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2015 12:42:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210730#M41513</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-11-01T12:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: indexing multiple timezone data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210731#M41514</link>
      <description>&lt;P&gt;So many things (exceptions) are changing in the pipeline lately (e.g. &lt;CODE&gt;INDEXED_ETRACTIONS&lt;/CODE&gt;) that I am starting to feel like I need to re-evaluate everything that I think I know).  In any case, I will take your word for it that this will for sure need a Heavy Forwarder (indexing twice) to make A1 work.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2015 18:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210731#M41514</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-01T18:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: indexing multiple timezone data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210732#M41515</link>
      <description>&lt;P&gt;Adding a HF will move the pipelines' processors to the HF, but the order remains the same. You'd have to cook the data twice, which is usually more trouble than it's worth.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/224312/hf1-hf2-indexer-how-to-route-a-set-of-data-that-ha.html"&gt;https://answers.splunk.com/answers/224312/hf1-hf2-indexer-how-to-route-a-set-of-data-that-ha.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Setting TZ per host is much easier than trying to modify the timestamp string per host using regex.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2015 18:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-multiple-timezone-data/m-p/210732#M41515</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-11-01T18:14:59Z</dc:date>
    </item>
  </channel>
</rss>

