<?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: Parse Time From Splunk Forwarder Logs when not send in Key=value pair in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133392#M27429</link>
    <description>&lt;P&gt;@musskopf I have follow up question for same query - can you take a look &lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/194858/remove-unique-rows-from-table.html"&gt;http://answers.splunk.com/answers/194858/remove-unique-rows-from-table.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Nov 2014 16:53:13 GMT</pubDate>
    <dc:creator>MayankSplunk</dc:creator>
    <dc:date>2014-11-25T16:53:13Z</dc:date>
    <item>
      <title>Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133379#M27416</link>
      <description>&lt;P&gt;Following are the logs I'm sending to Splunk. Can someone please guide me how to time subtract time if I group by id? &lt;BR /&gt;
Since I'm not sending time in Key=value pair I don't know what column to pull. &lt;/P&gt;

&lt;P&gt;2014-11-24 14:25:29,873 id=98d57314-740f-11e4-95a8-fe0b46e8751a, fileSize=0, duration=0, status=uploading &lt;BR /&gt;
2014-11-24 14:26:04,931 id=e5772c54-740e-11e4-95a8-fe0b46e8751a, fileSize=0, duration=103000, status=completed&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 20:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133379#M27416</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-24T20:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133380#M27417</link>
      <description>&lt;P&gt;Hi, I have to admit that I do not really understand the question. What do you want to subtract? Could you drop an example based on the logs?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 21:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133380#M27417</guid>
      <dc:creator>norbert_hamel</dc:creator>
      <dc:date>2014-11-24T21:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133381#M27418</link>
      <description>&lt;P&gt;Hi, you see time &lt;STRONG&gt;2014-11-24 14:25:29,873&lt;/STRONG&gt; &lt;STRONG&gt;2014-11-24 14:26:04,931&lt;/STRONG&gt; in two different row. I would like to subtract them. &lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 22:01:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133381#M27418</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-24T22:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133382#M27419</link>
      <description>&lt;P&gt;The timestamp should be automatic placed inside the field "_time". Splunk store time as seconds, but if you use it names "_time" it'll automatic format for you.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=bla "your search" | table _time, id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Remember that Splunk stores the Time in seconds, but it'll auto-format to a more human readable if the field name is "_time". For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=bla "your search" | eval time2=_time | table _time, time2, id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But you might be looking to do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=bla "your search" | transaction id | table _time, id, duration, status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Have a look on the &lt;CODE&gt;transaction&lt;/CODE&gt; command documentation, there are plenty of option...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133382#M27419</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2020-09-28T18:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133383#M27420</link>
      <description>&lt;P&gt;Ok, now things changed a bit... You might are looking for the command &lt;CODE&gt;transaction&lt;/CODE&gt;, which will add the field &lt;CODE&gt;duration&lt;/CODE&gt; that is exactly the time from the first event till the last event. But in your example, the IDs are different. Should they be the same?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 22:08:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133383#M27420</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2014-11-24T22:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133384#M27421</link>
      <description>&lt;P&gt;Yes, I mistakenly removed third row which had same ID as first.  Let me try your approach. &lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 22:12:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133384#M27421</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-24T22:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133385#M27422</link>
      <description>&lt;P&gt;Sorry but _time is not getting me multiple _time when grouped by id,&lt;/P&gt;

&lt;P&gt;(status="uploading" OR status="completed") | transaction id | table id, _time&lt;/P&gt;

&lt;P&gt;above query gives only one result time, am I doing something wrong? &lt;/P&gt;

&lt;P&gt;P.S : Don't have enuf point to reply to your answer below&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 23:09:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133385#M27422</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-24T23:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133386#M27423</link>
      <description>&lt;P&gt;Try using:&lt;/P&gt;

&lt;P&gt;(status="uploading" OR status="completed") | transaction id mvlist=t | table id, _time &lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;(status="uploading" OR status="completed") | transaction id mvlist=_time | table id, _time &lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 23:13:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133386#M27423</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2014-11-24T23:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133387#M27424</link>
      <description>&lt;P&gt;Using t give null and _time still pulls only 1 item &lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 23:18:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133387#M27424</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-24T23:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133388#M27425</link>
      <description>&lt;P&gt;If you take the &lt;CODE&gt;transaction&lt;/CODE&gt; command off, is your search returning duplicated values on the id column? The &lt;CODE&gt;transaction&lt;/CODE&gt; command should just "group" all the events having the same "id" and create multi-value fields for cases where the same field has distinct values.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 23:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133388#M27425</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2014-11-24T23:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133389#M27426</link>
      <description>&lt;P&gt;transaction is working fine because it gives me multiple eventCount based on # of similar IDs&lt;/P&gt;

&lt;P&gt;Problem is _time is always of the first item that we have in group while using transaction. &lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 23:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133389#M27426</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-24T23:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133390#M27427</link>
      <description>&lt;P&gt;ok, so add &lt;CODE&gt;| eval eventTime=_time&lt;/CODE&gt; before the transaction command:&lt;/P&gt;

&lt;P&gt;(status="uploading" OR status="completed") | eval eventTime=_time | transaction id | table id, _time, eventTime&lt;/P&gt;

&lt;P&gt;But as I mentioned, Splunk will show it as seconds, you should be able to convert it back using somenthing like: &lt;CODE&gt;| convert timeformat="%F %T" ctime(eventTime)&lt;/CODE&gt; at the end.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 23:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133390#M27427</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2014-11-24T23:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133391#M27428</link>
      <description>&lt;P&gt;eval eventTime=_time did the trick , thanks for all the help&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 15:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133391#M27428</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-25T15:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Time From Splunk Forwarder Logs when not send in Key=value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133392#M27429</link>
      <description>&lt;P&gt;@musskopf I have follow up question for same query - can you take a look &lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/194858/remove-unique-rows-from-table.html"&gt;http://answers.splunk.com/answers/194858/remove-unique-rows-from-table.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 16:53:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parse-Time-From-Splunk-Forwarder-Logs-when-not-send-in-Key-value/m-p/133392#M27429</guid>
      <dc:creator>MayankSplunk</dc:creator>
      <dc:date>2014-11-25T16:53:13Z</dc:date>
    </item>
  </channel>
</rss>

