<?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: Why does outputlookup gives a different _time column compared to &amp;quot;export&amp;quot;, in a .csv file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-outputlookup-gives-a-different-time-column-compared-to/m-p/410629#M72738</link>
    <description>&lt;P&gt;When you export to csv, Splunk is showing literally what you see in the search results, when you do outputlookup, Splunk is inserting the value for _time that the field normally has, which is an epoch time. Splunk treats _time as a special field and so will automatically convert epoch to human readable in the UI.  That's why it looks different when you compare the two searches. One is deliberately meant to be human readable, the other is meant to be readable by Splunk.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2019 20:21:39 GMT</pubDate>
    <dc:creator>martynoconnor</dc:creator>
    <dc:date>2019-06-07T20:21:39Z</dc:date>
    <item>
      <title>Why does outputlookup gives a different _time column compared to "export", in a .csv file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-outputlookup-gives-a-different-time-column-compared-to/m-p/410628#M72737</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I used SPL to get the number of logins by the hour for 1 month. The goal is to later import them into python using pandas. &lt;BR /&gt;
But I am having problems understanding the "_time" column. &lt;/P&gt;

&lt;P&gt;This is what I see in Splunk's SPL search result:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7167i4C95949A455B1F1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;But when I export it into .csv,  I see: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                      _time   Logins
2019-05-01T00:00:00.000-0400    3735
2019-05-01T01:00:00.000-0400    4665
2019-05-01T02:00:00.000-0400    5860
2019-05-01T03:00:00.000-0400    5184
2019-05-01T04:00:00.000-0400    5324
2019-05-01T05:00:00.000-0400    5523
2019-05-01T06:00:00.000-0400    8863
2019-05-01T07:00:00.000-0400    12493
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And when I use "outpulookup" to create the .csv, I see: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   _time    logins  _span
1556683200  3735    3600
1556686800  4665    3600
1556690400  5860    3600
1556694000  5184    3600
1556697600  5324    3600
1556701200  5523    3600
1556704800  8863    3600
1556708400  12493   3600
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The SPL to get the search results are:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=fortigate status=logon
|timechart span=1h count(status) as logins
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 20:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-outputlookup-gives-a-different-time-column-compared-to/m-p/410628#M72737</guid>
      <dc:creator>rosho</dc:creator>
      <dc:date>2019-06-07T20:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why does outputlookup gives a different _time column compared to "export", in a .csv file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-outputlookup-gives-a-different-time-column-compared-to/m-p/410629#M72738</link>
      <description>&lt;P&gt;When you export to csv, Splunk is showing literally what you see in the search results, when you do outputlookup, Splunk is inserting the value for _time that the field normally has, which is an epoch time. Splunk treats _time as a special field and so will automatically convert epoch to human readable in the UI.  That's why it looks different when you compare the two searches. One is deliberately meant to be human readable, the other is meant to be readable by Splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 20:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-outputlookup-gives-a-different-time-column-compared-to/m-p/410629#M72738</guid>
      <dc:creator>martynoconnor</dc:creator>
      <dc:date>2019-06-07T20:21:39Z</dc:date>
    </item>
  </channel>
</rss>

