<?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: Combine date field with millisecond offset column in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Combine-date-field-with-millisecond-offset-column/m-p/55901#M10930</link>
    <description>&lt;P&gt;Unfortunately, I don't think Splunk's time parser has the ability to do deltas in this way. Other folks have asked about startup logs which record the time since the system booted. The answer there was just as bleak.&lt;/P&gt;

&lt;P&gt;What you might consider, however, is treating the whole thing as one "event", and then splitting the various parts out as needed when you search against them. This would work if the whole file is "only" a couple hundred lines. &lt;/P&gt;

&lt;P&gt;Do you have any control of the log format as it's being written? We could offer suggestions on how to log efficiently....&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2013 19:11:35 GMT</pubDate>
    <dc:creator>sowings</dc:creator>
    <dc:date>2013-09-09T19:11:35Z</dc:date>
    <item>
      <title>Combine date field with millisecond offset column</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combine-date-field-with-millisecond-offset-column/m-p/55899#M10928</link>
      <description>&lt;P&gt;Hi, I'm currently performing an evaluation on Splunk, so I am very new at this. I have a few questions concerning time stamps and combining fields.&lt;/P&gt;

&lt;P&gt;Here is an example from the top of my data file:&lt;/P&gt;

&lt;P&gt;Start Time: (September 11; 2009 11:19:0 am)&lt;BR /&gt;
&lt;BR /&gt;DataValue1,,DataValue2&lt;BR /&gt;&lt;BR /&gt;
    601            ,45.416000       501            ,2.989220&lt;BR /&gt;&lt;BR /&gt;
    1080           ,1000.03         980            ,1.124074&lt;BR /&gt;&lt;BR /&gt;
    1200           ,45.483101       1080           ,2.946390&lt;BR /&gt;&lt;BR /&gt;
    1741           ,992.955017      1671           ,1.124074       &lt;/P&gt;

&lt;P&gt;My file contains a single timestamp for the beginning of the log and then each data value is paired with a millisecond offset from that initial time. The first value is the offset and immediately after that is the parameter value. The offset and the value are always separated by a comma and individual "offset,value" groups are separated by a tab.&lt;/P&gt;

&lt;P&gt;I would like to create the following data format within Splunk:&lt;/P&gt;

&lt;P&gt;timestamp   DataValue1  DataValue2&lt;BR /&gt;&lt;BR /&gt;
09/11/2009 11:19:00.501 null    2.989220&lt;BR /&gt;&lt;BR /&gt;
09/11/2009 11:19:00.601 45.416000   null&lt;BR /&gt;&lt;BR /&gt;
09/11/2009 11:19:00.980 null    1.124074&lt;BR /&gt;&lt;BR /&gt;
09/11/2009 11:19:01.080 1000.03 2.946390&lt;BR /&gt;&lt;BR /&gt;
09/11/2009 11:19:01.200 45.483101   null&lt;BR /&gt;&lt;BR /&gt;
09/11/2009 11:19:01.671 null    1.124074&lt;BR /&gt;&lt;BR /&gt;
09/11/2009 11:19:01.741 992.955017  null&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;I've been able to modify my props and transform to include basic header/field info but so far I am at a loss for how to do this type of field manipulation.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2013 21:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combine-date-field-with-millisecond-offset-column/m-p/55899#M10928</guid>
      <dc:creator>mike_cmxx</dc:creator>
      <dc:date>2013-09-05T21:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Combine date field with millisecond offset column</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combine-date-field-with-millisecond-offset-column/m-p/55900#M10929</link>
      <description>&lt;P&gt;Anyone have a suggestion here?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 17:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combine-date-field-with-millisecond-offset-column/m-p/55900#M10929</guid>
      <dc:creator>mike_cmxx</dc:creator>
      <dc:date>2013-09-09T17:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Combine date field with millisecond offset column</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combine-date-field-with-millisecond-offset-column/m-p/55901#M10930</link>
      <description>&lt;P&gt;Unfortunately, I don't think Splunk's time parser has the ability to do deltas in this way. Other folks have asked about startup logs which record the time since the system booted. The answer there was just as bleak.&lt;/P&gt;

&lt;P&gt;What you might consider, however, is treating the whole thing as one "event", and then splitting the various parts out as needed when you search against them. This would work if the whole file is "only" a couple hundred lines. &lt;/P&gt;

&lt;P&gt;Do you have any control of the log format as it's being written? We could offer suggestions on how to log efficiently....&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 19:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combine-date-field-with-millisecond-offset-column/m-p/55901#M10930</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-09T19:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Combine date field with millisecond offset column</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combine-date-field-with-millisecond-offset-column/m-p/55902#M10931</link>
      <description>&lt;P&gt;Unfortunately we do not have control over the format of the log file. And the real log file actually has hundreds of fields and thousands of rows.&lt;/P&gt;

&lt;P&gt;Is it possible to add the time field to each row? And then grab the time and the offset/value pair as a search output? Giving me something like:&lt;/P&gt;

&lt;P&gt;09/11/2009 11:19:00 501 2.98922&lt;BR /&gt;
09/11/2009 11:19:00 601 45.416&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 20:21:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combine-date-field-with-millisecond-offset-column/m-p/55902#M10931</guid>
      <dc:creator>mike_cmxx</dc:creator>
      <dc:date>2013-09-09T20:21:13Z</dc:date>
    </item>
  </channel>
</rss>

