<?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 Splunk CSV export change the time format to Epoch time? How to fix it? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-CSV-export-change-the-time-format-to-Epoch-time/m-p/223161#M43710</link>
    <description>&lt;P&gt;What version of Splunk are you running on what OS and please add the search you are using - thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2016 20:47:17 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2016-08-11T20:47:17Z</dc:date>
    <item>
      <title>Why does Splunk CSV export change the time format to Epoch time? How to fix it?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-CSV-export-change-the-time-format-to-Epoch-time/m-p/223160#M43709</link>
      <description>&lt;P&gt;I am a newbie on Splunk. When I do a search on Splunk, time is shown as normal &lt;CODE&gt;MM:DD:YYYY HH:MM:SS&lt;/CODE&gt; format &lt;/P&gt;

&lt;P&gt;However, when I export the file to CSV, it automatically converts time to Epoch time.&lt;/P&gt;

&lt;P&gt;Is there a better way to achieve this? I tried saving time to different variable in the hope it saves as string. No luck with anything. Any help is much appreciated.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 20:38:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-CSV-export-change-the-time-format-to-Epoch-time/m-p/223160#M43709</guid>
      <dc:creator>rajnepali</dc:creator>
      <dc:date>2016-08-11T20:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk CSV export change the time format to Epoch time? How to fix it?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-CSV-export-change-the-time-format-to-Epoch-time/m-p/223161#M43710</link>
      <description>&lt;P&gt;What version of Splunk are you running on what OS and please add the search you are using - thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 20:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-CSV-export-change-the-time-format-to-Epoch-time/m-p/223161#M43710</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-08-11T20:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk CSV export change the time format to Epoch time? How to fix it?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-CSV-export-change-the-time-format-to-Epoch-time/m-p/223162#M43711</link>
      <description>&lt;P&gt;I am running Splunk 5.0.3 on Ubuntu 12.04. My query looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="ossec" ossec_server="*" reporting_host!=ABC integrity NOT HKEY NOT tag::eventtype=noise NOT WinEvtLog NOT repo |transaction reporting_host,file_dirname|fields time, reporting_host, reporting_ip, action,file_name |mvexpand file_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Aug 2016 20:52:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-CSV-export-change-the-time-format-to-Epoch-time/m-p/223162#M43711</guid>
      <dc:creator>rajnepali</dc:creator>
      <dc:date>2016-08-11T20:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk CSV export change the time format to Epoch time? How to fix it?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-CSV-export-change-the-time-format-to-Epoch-time/m-p/223163#M43712</link>
      <description>&lt;P&gt;Seems like your search results include the _time field which shows human-readable format in Splunk visualizations (it's a special field) but holds an epoch value. When exported  as csv, it's original epoch value can be seen. &lt;/P&gt;

&lt;P&gt;If you want to export a string formatted date, then you'd need to create a formatted string out of _time field, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="ossec" ossec_server="*" reporting_host!=ABC integrity NOT HKEY NOT tag::eventtype=noise NOT WinEvtLog NOT repo |transaction reporting_host,file_dirname | eval time=strftime(_time,"%m/%d/%Y %H:%M:%S.%N") |fields time, reporting_host, reporting_ip, action,file_name |mvexpand file_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Aug 2016 21:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-CSV-export-change-the-time-format-to-Epoch-time/m-p/223163#M43712</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-11T21:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk CSV export change the time format to Epoch time? How to fix it?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-CSV-export-change-the-time-format-to-Epoch-time/m-p/223164#M43713</link>
      <description>&lt;P&gt;Thanks much @somesoni2. That works great.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 21:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-Splunk-CSV-export-change-the-time-format-to-Epoch-time/m-p/223164#M43713</guid>
      <dc:creator>rajnepali</dc:creator>
      <dc:date>2016-08-11T21:47:53Z</dc:date>
    </item>
  </channel>
</rss>

