<?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: Tricky parsing requirement in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158777#M32194</link>
    <description>&lt;P&gt;That's fine. I'm willing to do that calculation at search time. But I still need the all the data on the event to do that.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2014 19:51:34 GMT</pubDate>
    <dc:creator>ssledzie</dc:creator>
    <dc:date>2014-02-24T19:51:34Z</dc:date>
    <item>
      <title>Tricky parsing requirement</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158773#M32190</link>
      <description>&lt;P&gt;Say I fed a file into splunk that had a date field at the top.&lt;/P&gt;

&lt;P&gt;Then after that, one event per line that contained a time offset from the aforementioned date field. Any way I could make splunk assign a timestamp from date+time offset to the event?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 23:39:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158773#M32190</guid>
      <dc:creator>ssledzie</dc:creator>
      <dc:date>2014-02-19T23:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky parsing requirement</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158774#M32191</link>
      <description>&lt;P&gt;I'm gonna venture an educated guess - No, you cannot perform math on index time extractions.&lt;/P&gt;

&lt;P&gt;However, you can math in a search.  Once you get it the way you want it, you can create a macro so it can be called easily. &lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 00:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158774#M32191</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-02-20T00:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky parsing requirement</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158775#M32192</link>
      <description>&lt;P&gt;What if I didn't do any math but appended the start date to every event? Is that possible?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2014 18:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158775#M32192</guid>
      <dc:creator>ssledzie</dc:creator>
      <dc:date>2014-02-24T18:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky parsing requirement</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158776#M32193</link>
      <description>&lt;P&gt;You'd still have to do math in order to add the start date and the offset. The timestamp processor doesn't have that kind of functionality.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158776#M32193</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-02-24T19:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky parsing requirement</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158777#M32194</link>
      <description>&lt;P&gt;That's fine. I'm willing to do that calculation at search time. But I still need the all the data on the event to do that.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:51:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158777#M32194</guid>
      <dc:creator>ssledzie</dc:creator>
      <dc:date>2014-02-24T19:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky parsing requirement</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158778#M32195</link>
      <description>&lt;P&gt;Have you read this doc? &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/HowSplunkextractstimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/HowSplunkextractstimestamps&lt;/A&gt;&lt;BR /&gt;
According to that doc, if you can configure props.conf to recognize the 'date field' as an event of the same sourcetype, and pull the date as a date time, then all subsequent events would default to that 'date time' because the subsequent events of that same sourcetype do not have a valid 'date time'.&lt;BR /&gt;&lt;BR /&gt;
It is tough without seeing the data or log file structure.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:57:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158778#M32195</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-02-24T19:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky parsing requirement</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158779#M32196</link>
      <description>&lt;P&gt;I'll check the doc thanks. In either case, the format would be something like:&lt;/P&gt;

&lt;P&gt;&lt;START_FILE&gt;&lt;BR /&gt;
DATE: 02/24/2014 11:00:00&lt;/START_FILE&gt;&lt;/P&gt;

&lt;P&gt;0 &lt;SOME_EVENT&gt;&lt;BR /&gt;
5 &lt;SOME_EVENT&gt;&lt;BR /&gt;
10 &lt;SOME_EVENT&gt;&lt;BR /&gt;
&lt;END_FILE&gt;&lt;/END_FILE&gt;&lt;/SOME_EVENT&gt;&lt;/SOME_EVENT&gt;&lt;/SOME_EVENT&gt;&lt;/P&gt;

&lt;P&gt;In the above example 0,5, and 10 are offsets from the date header.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2014 20:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tricky-parsing-requirement/m-p/158779#M32196</guid>
      <dc:creator>ssledzie</dc:creator>
      <dc:date>2014-02-24T20:39:41Z</dc:date>
    </item>
  </channel>
</rss>

