<?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: Overriding timezone in props.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Overriding-timezone-in-props-conf/m-p/97166#M20261</link>
    <description>&lt;P&gt;If you want to ignore the time zone in the event, you should set &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; to something without the time zone, possibly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %b %d, %Y %H:%M:%S.%9N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But since you have the epoch time, it might be better to avoid the time zone issue completely and just use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = Epoch Time:
TIME_FORMAT = %s.%9N
MAX_TIMESTAMP_LOOKAHEAD = 24
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also (nothing to do with your question), your linebreaking/linemerge rules, while correct, would be more efficient as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(?=Frame)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 07 May 2011 18:22:24 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2011-05-07T18:22:24Z</dc:date>
    <item>
      <title>Overriding timezone in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overriding-timezone-in-props-conf/m-p/97165#M20260</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to get Splunk to recognise my timezone based on a TZ and TIME_PREFIX setting in props.conf.  However, it seems to get overridden by the presence of a timezone in the event line.  &lt;/P&gt;

&lt;P&gt;My props.conf:&lt;/P&gt;

&lt;PRE&gt;

[wireshark-test3]
TZ=Australia/Sydney
TIME_PREFIX = \s+Arrival\sTime:
LINE_BREAKER = ([\r\n]+)([\r\n]+)
BREAK_ONLY_BEFORE = ^Frame

&lt;/PRE&gt;

&lt;P&gt;Example data:&lt;/P&gt;

&lt;PRE&gt;
Frame 4397: 917 bytes on wire (7336 bits), 917 bytes captured (7336 bits)
    Arrival Time: May  7, 2011 12:38:46.463639654 EST
    Epoch Time: 1304735926.463639654 seconds
    [Time delta from previous captured frame: 0.020186528 seconds]
    [Time delta from previous displayed frame: 0.088711321 seconds]
&lt;/PRE&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;P&gt;My props.conf correctly breaks down events, however, it sees the "EST" and assumes that is US/Eastern Standard Time, not Australian Eastern Standard Time.  &lt;/P&gt;

&lt;P&gt;Is this fixable in props.conf, or am I going to have to add something to transforms.conf to get this to work correctly?&lt;/P&gt;

&lt;P&gt;At the moment it's reading in the data and assuming the US value, which of course breaks things...&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2011 05:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overriding-timezone-in-props-conf/m-p/97165#M20260</guid>
      <dc:creator>howyagoin</dc:creator>
      <dc:date>2011-05-07T05:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding timezone in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overriding-timezone-in-props-conf/m-p/97166#M20261</link>
      <description>&lt;P&gt;If you want to ignore the time zone in the event, you should set &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; to something without the time zone, possibly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %b %d, %Y %H:%M:%S.%9N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But since you have the epoch time, it might be better to avoid the time zone issue completely and just use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = Epoch Time:
TIME_FORMAT = %s.%9N
MAX_TIMESTAMP_LOOKAHEAD = 24
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also (nothing to do with your question), your linebreaking/linemerge rules, while correct, would be more efficient as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(?=Frame)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 May 2011 18:22:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overriding-timezone-in-props-conf/m-p/97166#M20261</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-05-07T18:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding timezone in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overriding-timezone-in-props-conf/m-p/97167#M20262</link>
      <description>&lt;P&gt;Brilliant, thanks, that did it.  And thanks for the more efficient way of doing the linebreaking!&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2011 22:15:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overriding-timezone-in-props-conf/m-p/97167#M20262</guid>
      <dc:creator>howyagoin</dc:creator>
      <dc:date>2011-05-08T22:15:47Z</dc:date>
    </item>
  </channel>
</rss>

