<?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: Timechart with Convert Timeformat in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23627#M4242</link>
    <description>&lt;P&gt;Ya Man this did it thanks&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jul 2012 16:00:26 GMT</pubDate>
    <dc:creator>hartfoml</dc:creator>
    <dc:date>2012-07-24T16:00:26Z</dc:date>
    <item>
      <title>Timechart with Convert Timeformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23622#M4237</link>
      <description>&lt;P&gt;So i can build a timechart like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart limit=3 span=1m count by host useother=F 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when I export the results the time format is not readable&lt;BR /&gt;
How to I format the _time in Timechart or how do I create this kind of chart so that I can format or convert the _time &lt;/P&gt;

&lt;P&gt;_time   sys01   sys06   srv01   srv02&lt;/P&gt;

&lt;P&gt;1334078460  3   2   2   3&lt;/P&gt;

&lt;P&gt;1334078520  2   3   2   2&lt;/P&gt;

&lt;P&gt;1334078580  3   2   3   3&lt;/P&gt;

&lt;P&gt;1334078640  3   3   3   3&lt;/P&gt;

&lt;P&gt;1334078700  2   3   2   2&lt;/P&gt;

&lt;P&gt;1334078760  2   2   2   2&lt;/P&gt;

&lt;P&gt;1334078820  2   2   2   2&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 18:39:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23622#M4237</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2012-04-10T18:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with Convert Timeformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23623#M4238</link>
      <description>&lt;P&gt;did you try with &lt;CODE&gt;| convert ctime(_time)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 19:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23623#M4238</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-04-10T19:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with Convert Timeformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23624#M4239</link>
      <description>&lt;P&gt;Ya thanks I tried that first thing.&lt;/P&gt;

&lt;P&gt;I tried | convert timeformat="%H:%M:%S" ctime(_time) AS Time | timechart limit=3 span=1m count by host useother=F&lt;/P&gt;

&lt;P&gt;But I didn't know how to work in the "Time" veritable&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 19:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23624#M4239</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2012-04-10T19:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with Convert Timeformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23625#M4240</link>
      <description>&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart limit=3 span=1m count by host useother=F | eval Time=strftime(_time,"%H:%M:%S") | table Time,*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use of &lt;CODE&gt;convert&lt;/CODE&gt; is considered &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/convert"&gt;deprecated&lt;/A&gt;, so the &lt;CODE&gt;eval&lt;/CODE&gt; will accomplish the same thing, then &lt;CODE&gt;table&lt;/CODE&gt; will reorder the columns.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 22:26:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23625#M4240</guid>
      <dc:creator>tysonstewart</dc:creator>
      <dc:date>2012-04-10T22:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with Convert Timeformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23626#M4241</link>
      <description>&lt;P&gt;try to convert after the timechart.&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
 * | timechart span=1d count by source | convert timeformat=""%Y-%m-%d %H:%M:%S"" ctime(_time) AS date | sort _time | fields - _time | table date *&lt;BR /&gt;
 &lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2012 15:06:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23626#M4241</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-07-24T15:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with Convert Timeformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23627#M4242</link>
      <description>&lt;P&gt;Ya Man this did it thanks&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2012 16:00:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23627#M4242</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2012-07-24T16:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with Convert Timeformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23628#M4243</link>
      <description>&lt;P&gt;Helpful description of the commands.  Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 09:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23628#M4243</guid>
      <dc:creator>mikeydee77</dc:creator>
      <dc:date>2017-01-06T09:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with Convert Timeformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23629#M4244</link>
      <description>&lt;P&gt;@yannK , thanks for your input. &lt;BR /&gt;
I'm not getting the exact time for the query.&lt;BR /&gt;
For example: If I have a DateTime: &lt;CODE&gt;2019-12-19T15:03:20Z&lt;/CODE&gt; I see &lt;CODE&gt;2019-12-19T00:00:00Z&lt;/CODE&gt;&lt;BR /&gt;
How can I get the exact DateTime for the event?&lt;/P&gt;

&lt;P&gt;my query:&lt;BR /&gt;
   &lt;CODE&gt;eventtype="xxxxxxx" state!=null xxxx="*" | timechart count by state  | convert timeformat="%Y-%m-%dT%H:%M:%SZ" ctime(_time) AS DateTime | sort _time | fields - _time | table DateTime, *&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 07:21:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-Convert-Timeformat/m-p/23629#M4244</guid>
      <dc:creator>pbankar</dc:creator>
      <dc:date>2019-12-24T07:21:57Z</dc:date>
    </item>
  </channel>
</rss>

