<?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: plotting date versus time chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160394#M45331</link>
    <description>&lt;P&gt;If you have fields like _time (job run date time) and job_name, then try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;you base search giving _time, job_name | eval Date=strftime(_time,"%d/%m/%y") | eval Time=strftime(_time,"%H:%M") | chart first(Time) over Date by job_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:34:53 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2020-09-28T16:34:53Z</dc:date>
    <item>
      <title>plotting date versus time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160393#M45330</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I have a requirement to present a report to show three jobs and what time they start every day.&lt;/P&gt;

&lt;P&gt;Eg: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                abc           xyz           lmn
05/10/14        21:30         21:30         21:40
05/11/14        21:35         21:45         21:40
05/12/14        21:30         22:00         21:50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All these three jobs run everyday so I want to plot time when they started  as the time  might differ for each job everyday.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 10:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160393#M45330</guid>
      <dc:creator>usha_nittala</dc:creator>
      <dc:date>2014-05-12T10:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: plotting date versus time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160394#M45331</link>
      <description>&lt;P&gt;If you have fields like _time (job run date time) and job_name, then try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;you base search giving _time, job_name | eval Date=strftime(_time,"%d/%m/%y") | eval Time=strftime(_time,"%H:%M") | chart first(Time) over Date by job_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:34:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160394#M45331</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T16:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: plotting date versus time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160395#M45332</link>
      <description>&lt;P&gt;Thanks for the answer.&lt;/P&gt;

&lt;P&gt;I have already tried something like this:&lt;/P&gt;

&lt;P&gt;| inputcsv mytest.csv | search JOB_NAME="jobstart1" | eval actual=round(strptime(ACT_TIME,"%H.%M"),0) | chart last(actual) over JOB_DATE by JOB_NAME&lt;/P&gt;

&lt;P&gt;Its giving me output in this format:&lt;/P&gt;

&lt;P&gt;JOB_DATE              jobstart1&lt;BR /&gt;&lt;BR /&gt;
03/18/2014            1400031300&lt;BR /&gt;&lt;BR /&gt;
03/19/2014            1400031900&lt;BR /&gt;&lt;BR /&gt;
03/20/2014            1400031600                     &lt;/P&gt;

&lt;P&gt;This giving me time in wierd format.1400031300&lt;/P&gt;

&lt;P&gt;How to convert this time to readable format i.e   1400031300 should be 21:35&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Usha&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:36:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160395#M45332</guid>
      <dc:creator>usha_nittala</dc:creator>
      <dc:date>2020-09-28T16:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: plotting date versus time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160396#M45333</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;The output is in EPOCh(Unix)Time you can convert it by using |fieldformat NEW_Field=strftime(date/Time_field."%d-%m-%Y %H: %M: %S")&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160396#M45333</guid>
      <dc:creator>harshavrath</dc:creator>
      <dc:date>2020-09-28T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: plotting date versus time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160397#M45334</link>
      <description>&lt;P&gt;I tried this way and got the chart:&lt;BR /&gt;
| inputcsv mytest.csv| search JOB_NAME="jobstart1" | eval actual=strftime(strptime(ACT_TIME,"%H.%M"),"%H:%M") | chart first(actual) over JOB_DATE by JOB_NAME&lt;BR /&gt;
and got output like this:&lt;BR /&gt;
JOB_DATE              jobstart1&lt;BR /&gt;&lt;BR /&gt;
03/18/2014            21:35&lt;BR /&gt;&lt;BR /&gt;
03/19/2014            21:30&lt;BR /&gt;&lt;BR /&gt;
03/20/2014            21:45  &lt;/P&gt;

&lt;P&gt;when I am trying to see the visualization in splunk using line chart.Its not showing anything.. It should show three seperate line as date is on x -axis and time is on y-axis. &lt;/P&gt;

&lt;P&gt;Where am I going wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:36:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160397#M45334</guid>
      <dc:creator>usha_nittala</dc:creator>
      <dc:date>2020-09-28T16:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: plotting date versus time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160398#M45335</link>
      <description>&lt;P&gt;For visualization you need numeric data for y axis, here the time is string.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2014 15:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plotting-date-versus-time-chart/m-p/160398#M45335</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-14T15:31:09Z</dc:date>
    </item>
  </channel>
</rss>

