<?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: Need help in creating timechart query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313789#M93921</link>
    <description>&lt;P&gt;try this:&lt;BR /&gt;
&lt;CODE&gt;| inputlookup xxxx.csv |eval _time = strptime(time, "%m/%d/%Y %H:%M") | timechart span=1d as ElapsedTime&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2018 01:33:10 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2018-04-05T01:33:10Z</dc:date>
    <item>
      <title>Need help in creating timechart query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313788#M93920</link>
      <description>&lt;P&gt;I have hourly data for 30 days on execution of jobs. I wanted to create a timechart based on elapsed time. could you please help me through. my query:&lt;/P&gt;

&lt;P&gt;| inputlookup xxxx.csv |eval in_epoch = strptime(time, "%m/%d/%Y %H:%M")  | timechart span=1d as ElapsedTime&lt;/P&gt;

&lt;P&gt;Could you please help?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 22:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313788#M93920</guid>
      <dc:creator>jcvytla</dc:creator>
      <dc:date>2018-04-04T22:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating timechart query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313789#M93921</link>
      <description>&lt;P&gt;try this:&lt;BR /&gt;
&lt;CODE&gt;| inputlookup xxxx.csv |eval _time = strptime(time, "%m/%d/%Y %H:%M") | timechart span=1d as ElapsedTime&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 01:33:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313789#M93921</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-04-05T01:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating timechart query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313790#M93922</link>
      <description>&lt;P&gt;try this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup xxxx.csv |eval in_epoch = strptime(time, "%m/%d/%Y %H:%M")  | bucket in_epoch span=1d| stats count values(your_field) as your_field by in_epoch |convert ctime(in_epoch)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Apr 2018 04:26:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313790#M93922</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2018-04-05T04:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating timechart query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313791#M93923</link>
      <description>&lt;P&gt;try this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | inputlookup xxxx.csv |eval in_epoch = strptime(time, "%m/%d/%Y %H:%M")  | bucket in_epoch span=1d| stats count values(your_field) as your_field by in_epoch |convert ctime(in_epoch)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Apr 2018 04:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313791#M93923</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2018-04-05T04:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating timechart query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313792#M93924</link>
      <description>&lt;P&gt;I think you should try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup xxxx.csv |eval _time=strptime(time, "%m/%d/%Y %H:%M") | timechart span=1d count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup xxxx.csv |eval _time=time | bin _time span=1d | stats count by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 07:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313792#M93924</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-04-05T07:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating timechart query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313793#M93925</link>
      <description>&lt;P&gt;Hi @adonio,&lt;/P&gt;

&lt;P&gt;Thanks for your response.I'm getting this error while running the your solution:&lt;/P&gt;

&lt;P&gt;"Error in 'timechart' command: The specifier 'as' is invalid. It must be in form (). For example: max(size)."&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313793#M93925</guid>
      <dc:creator>jcvytla</dc:creator>
      <dc:date>2018-04-05T17:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating timechart query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313794#M93926</link>
      <description>&lt;P&gt;HI Mayur,&lt;/P&gt;

&lt;P&gt;Thanks for your response. But, both the solution are not working. Data is not being populated in the first place.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:25:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313794#M93926</guid>
      <dc:creator>jcvytla</dc:creator>
      <dc:date>2018-04-05T17:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating timechart query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313795#M93927</link>
      <description>&lt;P&gt;Hi @splunker12er,&lt;/P&gt;

&lt;P&gt;Thanks for your response. I don't get any error, but is not being populated &lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-creating-timechart-query/m-p/313795#M93927</guid>
      <dc:creator>jcvytla</dc:creator>
      <dc:date>2018-04-05T17:27:28Z</dc:date>
    </item>
  </channel>
</rss>

