<?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 issue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-issue/m-p/494929#M146077</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163695"&gt;@clementros&lt;/a&gt;,&lt;BR /&gt;
a little question: have you a process_id that permits to correlate begin process with exit_status?&lt;BR /&gt;
if yes it's easy to build your search, otherwise you have to find a way to count the executed processes.&lt;/P&gt;

&lt;P&gt;In the first case you could have something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index (process_id=* OR exit_status=*)
| stats values(exit_status) AS exit_status BY process_id
| fillnull value="No exit_status" exit_status
| table process_id exit_status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the second case you can have only a total of the processes without exit_status.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:10:01 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-09-30T03:10:01Z</dc:date>
    <item>
      <title>Timechart issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-issue/m-p/494928#M146076</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I have extracted a field (exit_status) in log file. I want to know if a process exit properly.&lt;/P&gt;

&lt;P&gt;I have 3 use cases that can be found in log files, exit_status = normaly, exit_status= -1 or exit_status not exist. &lt;/P&gt;

&lt;P&gt;I want to have a visualisation wich count the number of exit_status = normaly and the number of file that not exit normaly ( exit_status = -1 + exit_status do not exist)&lt;/P&gt;

&lt;P&gt;I don't know how to create a counter of existing value (-1) plus the number of file where exit_status do not exist.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-issue/m-p/494928#M146076</guid>
      <dc:creator>clementros</dc:creator>
      <dc:date>2020-09-30T03:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-issue/m-p/494929#M146077</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163695"&gt;@clementros&lt;/a&gt;,&lt;BR /&gt;
a little question: have you a process_id that permits to correlate begin process with exit_status?&lt;BR /&gt;
if yes it's easy to build your search, otherwise you have to find a way to count the executed processes.&lt;/P&gt;

&lt;P&gt;In the first case you could have something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index (process_id=* OR exit_status=*)
| stats values(exit_status) AS exit_status BY process_id
| fillnull value="No exit_status" exit_status
| table process_id exit_status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the second case you can have only a total of the processes without exit_status.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:10:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-issue/m-p/494929#M146077</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T03:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-issue/m-p/494930#M146078</link>
      <description>&lt;P&gt;Hi @gcusello&lt;/P&gt;

&lt;P&gt;Thank you for your help. The result is good but i do not know how to plot this with a exit_status value count every day&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 09:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-issue/m-p/494930#M146078</guid>
      <dc:creator>clementros</dc:creator>
      <dc:date>2019-11-29T09:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-issue/m-p/494931#M146079</link>
      <description>&lt;P&gt;Hi @clementros,&lt;BR /&gt;
Try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index (process_id=* OR exit_status=*)
| stats earliest(_time) AS _time values(exit_status) AS exit_status BY process_id
| fillnull value="No exit_status" exit_status
| timechart span=1d count BY exit_status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 09:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-issue/m-p/494931#M146079</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-29T09:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-issue/m-p/494932#M146080</link>
      <description>&lt;P&gt;It works than you&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 09:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-issue/m-p/494932#M146080</guid>
      <dc:creator>clementros</dc:creator>
      <dc:date>2019-11-29T09:44:21Z</dc:date>
    </item>
  </channel>
</rss>

