<?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: Data extraction showing different time formats. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-data-extraction-showing-different-time-formats/m-p/584354#M203490</link>
    <description>&lt;P&gt;For starters, check the resulting csv file with a simple text editor and see what data you have in there. I suppose you're opening it in excel and there it looks like you're showing. Excel is notorious for raping date fields.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 17:16:06 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-02-09T17:16:06Z</dc:date>
    <item>
      <title>Why is data extraction showing different time formats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-data-extraction-showing-different-time-formats/m-p/584344#M203486</link>
      <description>&lt;P&gt;In the query&amp;nbsp; _time is already formatted. But when i try to export the data in csv its showing different formats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query:&lt;BR /&gt;&lt;BR /&gt;index="win event" host IN (USMDCKPAP30074) Event=6006 OR Event="6005" Type=Information&lt;BR /&gt;| eval Uptime = if(Event=6005,strftime(_time, "%Y-%d-%m %H:%M:%S"),null())&lt;BR /&gt;| table host Uptime&lt;BR /&gt;&lt;BR /&gt;Eg:&lt;/P&gt;
&lt;P&gt;2022-31-01 10:00:42&lt;BR /&gt;2022-29-01 06:40:11&lt;BR /&gt;2022-27-01 12:55:56&lt;/P&gt;
&lt;P&gt;After exporting :&lt;/P&gt;
&lt;P&gt;8/1/2022 4:08&lt;BR /&gt;1/1/2022 4:03&lt;BR /&gt;2021-25-12 04:03:29&lt;BR /&gt;2021-18-12 04:02:54&lt;BR /&gt;2021-16-12 10:14:45&lt;BR /&gt;2021-16-12 10:08:21&lt;BR /&gt;11/12/2021 4:08&lt;BR /&gt;4/12/2021 4:11&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 19:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-data-extraction-showing-different-time-formats/m-p/584344#M203486</guid>
      <dc:creator>priya1926</dc:creator>
      <dc:date>2022-02-09T19:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data extraction showing different time formats.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-data-extraction-showing-different-time-formats/m-p/584354#M203490</link>
      <description>&lt;P&gt;For starters, check the resulting csv file with a simple text editor and see what data you have in there. I suppose you're opening it in excel and there it looks like you're showing. Excel is notorious for raping date fields.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 17:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-data-extraction-showing-different-time-formats/m-p/584354#M203490</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-09T17:16:06Z</dc:date>
    </item>
  </channel>
</rss>

