<?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: Using props.conf to change timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114998#M24068</link>
    <description>&lt;P&gt;This is a single server splunk deployment. The events come directly into the splunk server via webservice.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2014 15:19:17 GMT</pubDate>
    <dc:creator>jedatt01</dc:creator>
    <dc:date>2014-04-01T15:19:17Z</dc:date>
    <item>
      <title>Using props.conf to change timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114994#M24064</link>
      <description>&lt;P&gt;I have a modular input that collects data from a webservice. The events are not collected in realtime so to get the true timestamp I have to extract that from the time field on each event instead of using when splunk consumes it as the time stamp. &lt;/P&gt;

&lt;P&gt;The problem with this is the event time is in UTC and my server is in US/Eastern time (UTC-5). When I search for the events they show 5 hours ahead. This causes problems when using relative search times because no data shows up.&lt;/P&gt;

&lt;P&gt;How can I use props.conf or other method to make the events show up in Splunk as US/Eastern time so my searches work correctly? My current props.conf is below. I've tried to change the TZ= setting but it makes no difference. Please help!&lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
BREAK_ONLY_BEFORE=^{&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%d %H:%M:%S.%3Q&lt;BR /&gt;
TZ=UTC&lt;BR /&gt;
KV_MODE=json&lt;BR /&gt;
TRUNCATE=15000&lt;/P&gt;

&lt;P&gt;Here's what the raw event logs like from splunkd.log&lt;BR /&gt;
{&lt;BR /&gt;
    'tot': 86, &lt;BR /&gt;
    'epoch': 1396352800, &lt;BR /&gt;
    'tos': 85, &lt;BR /&gt;
    'sid': 318, &lt;BR /&gt;
    'browsertype': IE7, &lt;BR /&gt;
    'type': 'txtest', &lt;BR /&gt;
    'sname': New York, NY - Verizon, &lt;BR /&gt;
    'ttime': 2014-04-01 07:46:40.433, &lt;BR /&gt;
    'tpf': 0, &lt;BR /&gt;
    'rtime': 5954, &lt;BR /&gt;
    'nbyte': 729580, &lt;BR /&gt;
    'tof': 0, &lt;BR /&gt;
    'mid': 14247945, &lt;BR /&gt;
    'tps': 3, 'tpt': 3&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:17:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114994#M24064</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2020-09-28T16:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using props.conf to change timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114995#M24065</link>
      <description>&lt;P&gt;The timezone will be applied on index time. Therefore you cannot modify existing data to show correctly. You may want to export the data and re-import it.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2014 14:36:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114995#M24065</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-04-01T14:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using props.conf to change timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114996#M24066</link>
      <description>&lt;P&gt;What about data that has not already been indexed? I'm not concerned about the data that is already there.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2014 15:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114996#M24066</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2014-04-01T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using props.conf to change timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114997#M24067</link>
      <description>&lt;P&gt;Where did you configure this, on the indexer?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2014 15:09:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114997#M24067</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-04-01T15:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using props.conf to change timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114998#M24068</link>
      <description>&lt;P&gt;This is a single server splunk deployment. The events come directly into the splunk server via webservice.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2014 15:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114998#M24068</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2014-04-01T15:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using props.conf to change timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114999#M24069</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I checked the data. Your intended timestamp was not recognized. Try the below configuration.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test] 
NO_BINARY_CHECK=1 
SHOULD_LINEMERGE=true 
BREAK_ONLY_BEFORE=^{ 
TIME_PREFIX='ttime':
TIME_FORMAT=%Y-%m-%d %H:%M:%S.%3Q 
TZ=UTC 
KV_MODE=json 
TRUNCATE=15000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2014 18:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/114999#M24069</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-01T18:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using props.conf to change timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/115000#M24070</link>
      <description>&lt;P&gt;That did the trick! thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2014 19:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-props-conf-to-change-timestamp/m-p/115000#M24070</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2014-04-01T19:10:22Z</dc:date>
    </item>
  </channel>
</rss>

