<?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: Formatting in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-this-search/m-p/584537#M203567</link>
    <description>&lt;LI-CODE lang="markup"&gt;| eval BootUptime = if(EventCode=6005,strftime(_time, "%Y-%d-%m %H:%M:%S"),"n/a")&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 10 Feb 2022 14:28:56 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-02-10T14:28:56Z</dc:date>
    <item>
      <title>How to format this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-this-search/m-p/584534#M203564</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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query:index="wineventlog" host IN (USMDCKPAP30074) EventCode=6006 OR EventCode="6005" Type=Information&lt;BR /&gt;| eval BootUptime = if(EventCode=6005,strftime(_time, "%Y-%d-%m %H:%M:%S"),null())&lt;BR /&gt;| table host BootUptime&lt;BR /&gt;&lt;BR /&gt;Eg:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="161px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="160px" height="25px"&gt;2022-31-01 10:00:42&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="160px" height="25px"&gt;2022-29-01 06:40:11&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="160px" height="25px"&gt;2022-27-01 12:55:56&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After exporting :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="131"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="131"&gt;8/1/2022 4:08&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1/1/2022 4:03&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2021-25-12 04:03:29&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2021-18-12 04:02:54&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2021-16-12 10:14:45&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2021-16-12 10:08:21&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;11/12/2021 4:08&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;4/12/2021 4:11&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Please help me resolve this&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 16:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-this-search/m-p/584534#M203564</guid>
      <dc:creator>ranjithan</dc:creator>
      <dc:date>2022-02-10T16:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-this-search/m-p/584537#M203567</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval BootUptime = if(EventCode=6005,strftime(_time, "%Y-%d-%m %H:%M:%S"),"n/a")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Feb 2022 14:28:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-this-search/m-p/584537#M203567</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-10T14:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-this-search/m-p/584687#M203679</link>
      <description>&lt;P&gt;Thank You so much, this works!!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 09:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-this-search/m-p/584687#M203679</guid>
      <dc:creator>ranjithan</dc:creator>
      <dc:date>2022-02-11T09:44:44Z</dc:date>
    </item>
  </channel>
</rss>

