<?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 Timecharts and Multiple Operating Systems in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498511#M138900</link>
    <description>&lt;P&gt;I'm currently attempting to make a 6 month trend of multiple OS' compliance percentages into one timechart, but am running into trouble separating it by Operating system (the field containing this information is "check_checklist_name")&lt;/P&gt;

&lt;P&gt;Basically, I'd like for it to be one timechart that includes specific OS that I specify (via check_checklist_name) and then shows them all on a line chart with their trends over the past 6 months (so 6 lines on one 6 month trend chart). Would I need to include a bin as well to ensure the % are accurate from a few months ago and are not deduped out?&lt;/P&gt;

&lt;P&gt;Currently, I have the following:&lt;/P&gt;

&lt;P&gt;index=bigfix sourcetype="bigfix:compliance" check_checklist_name="Windows 2008" OR check_checklist_name="Windows 2012" OR check_checklist_name="Windows 7" OR check_checklist_name="Windows 10" OR check_checklist_name="RHEL 6" OR check_checklist_name="RHEL 7" state="passed" OR state="failed" &lt;BR /&gt;
| dedup comp_id check_id &lt;BR /&gt;
| timechart span=1mon count(eval(state="passed")) AS Passed, count(eval(state="failed")) AS Failed &lt;BR /&gt;
| eval Percent_Compliance=(100-((Failed/(Passed+Failed))*100))&lt;BR /&gt;
| table _time Percent_Compliance&lt;/P&gt;

&lt;P&gt;This gets me the overall percentage every month, but it does not break it down by the Operating System. Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:29:26 GMT</pubDate>
    <dc:creator>giventofly08</dc:creator>
    <dc:date>2020-09-30T02:29:26Z</dc:date>
    <item>
      <title>Timecharts and Multiple Operating Systems</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498511#M138900</link>
      <description>&lt;P&gt;I'm currently attempting to make a 6 month trend of multiple OS' compliance percentages into one timechart, but am running into trouble separating it by Operating system (the field containing this information is "check_checklist_name")&lt;/P&gt;

&lt;P&gt;Basically, I'd like for it to be one timechart that includes specific OS that I specify (via check_checklist_name) and then shows them all on a line chart with their trends over the past 6 months (so 6 lines on one 6 month trend chart). Would I need to include a bin as well to ensure the % are accurate from a few months ago and are not deduped out?&lt;/P&gt;

&lt;P&gt;Currently, I have the following:&lt;/P&gt;

&lt;P&gt;index=bigfix sourcetype="bigfix:compliance" check_checklist_name="Windows 2008" OR check_checklist_name="Windows 2012" OR check_checklist_name="Windows 7" OR check_checklist_name="Windows 10" OR check_checklist_name="RHEL 6" OR check_checklist_name="RHEL 7" state="passed" OR state="failed" &lt;BR /&gt;
| dedup comp_id check_id &lt;BR /&gt;
| timechart span=1mon count(eval(state="passed")) AS Passed, count(eval(state="failed")) AS Failed &lt;BR /&gt;
| eval Percent_Compliance=(100-((Failed/(Passed+Failed))*100))&lt;BR /&gt;
| table _time Percent_Compliance&lt;/P&gt;

&lt;P&gt;This gets me the overall percentage every month, but it does not break it down by the Operating System. Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498511#M138900</guid>
      <dc:creator>giventofly08</dc:creator>
      <dc:date>2020-09-30T02:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timecharts and Multiple Operating Systems</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498512#M138901</link>
      <description>&lt;P&gt;Have you tried &lt;CODE&gt;... | timechart span=1mon count(eval(state="passed")) AS Passed, count(eval(state="failed")) AS Failed BY check_checklist_name | ...&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 13:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498512#M138901</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-10-07T13:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Timecharts and Multiple Operating Systems</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498513#M138902</link>
      <description>&lt;P&gt;I've also noticed when I attempt  to round the percentage to 11 decimal it breaks the query. Could someone please explain to me why that is?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;enter code here&lt;/CODE&gt;index=bigfix sourcetype="bigfix:compliance" check_checklist_name="Windows 2008" OR check_checklist_name="Windows 2012" OR check_checklist_name="Windows 7" OR check_checklist_name="Windows 10" OR check_checklist_name="RHEL 6" OR check_checklist_name="RHEL 7" state="passed" OR state="failed"&lt;BR /&gt;
| dedup comp_id check_id&lt;BR /&gt;&lt;BR /&gt;
| timechart span=1mon count(eval(state="passed")) AS Passed, count(eval(state="failed")) AS Failed &lt;BR /&gt;
| eval Percent_Compliance=(100-((Failed/(Passed+Failed))*100)) &lt;BR /&gt;
| eval Compliance=round(Compliance,1) &lt;BR /&gt;
| table _time Percent_Compliance&lt;CODE&gt;enter code here&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498513#M138902</guid>
      <dc:creator>giventofly08</dc:creator>
      <dc:date>2020-09-30T02:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Timecharts and Multiple Operating Systems</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498514#M138903</link>
      <description>&lt;P&gt;That did move me in the right direction, It now displays all 7 of the respective OS's into a total of 14 columns (1 for passed: OS and one for failed:OS for each OS), but no percentages.&lt;/P&gt;

&lt;P&gt;Would I need to then right a massive eval statement where it becomes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | timechart span=1mon count(eval(state="passed")) AS Passed, count(eval(state="failed")) AS Failed by check_checklist_name
    | eval Perc_RHEL7=(100-((Failed: RHEL 7*/(Passed: RHEL 7*+Failed: RHEL 7*))*100)) ...etc for all OS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've also noticed when I try to round to the nearest .1% it breaks the query as well...any thoughts? Thanks so much for getting me past the initial mental block.&lt;BR /&gt;
Same with trying to add a bin so that it looks at everything in 1 month intervals without deduping previous months.&lt;/P&gt;

&lt;P&gt;Apologies for the amount of questions, these items have just been grating me for a while now where they work sometimes, but don't work other times.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 14:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498514#M138903</guid>
      <dc:creator>giventofly08</dc:creator>
      <dc:date>2019-10-07T14:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Timecharts and Multiple Operating Systems</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498515#M138904</link>
      <description>&lt;P&gt;You only need one &lt;CODE&gt;eval&lt;/CODE&gt; statement to compute percentages for each OS.  The one in your original query should work.&lt;BR /&gt;
Adding &lt;CODE&gt;round&lt;/CODE&gt; should be painless:  &lt;CODE&gt;... | eval Percent_Compliance=round(Percent_Compliance,1) | ...&lt;/CODE&gt;.&lt;BR /&gt;
I'm not sure what you mean by "without deduping previous months".  Dedup should not be needed.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 14:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498515#M138904</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-10-07T14:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timecharts and Multiple Operating Systems</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498516#M138905</link>
      <description>&lt;P&gt;Sorry, it looks like the difference between dedup and not is super negligible so I can simply remove the dedup and the bin.&lt;/P&gt;

&lt;P&gt;However; when I change the syntax to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=bigfix sourcetype="bigfix:compliance" check_checklist_name="Windows 2008 " OR check_checklist_name="Windows 2012" OR check_checklist_name="Windows 2012" OR check_checklist_name="Windows 7" OR check_checklist_name="Windows 10" OR check_checklist_name="RHEL 6" OR check_checklist_name="RHEL 7"  state="passed" OR state="failed" 

| timechart span=1mon count(eval(state="passed")) AS Passed, count(eval(state="failed")) AS Failed by check_checklist_name
| eval Percent_Compliance=(100-((Failed/(Passed+Failed))*100))
| eval Percent_Compliance=round(Percent_Compliance,1)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It shows the chart like before with 14 total columns for Passed and Failed for each OS (such as: Failed: RHEL6, Failed: RHEL7, Passed: RHEL6 etc), broken down by 6 months worth of rows. it does not compute the percentage though&lt;/P&gt;

&lt;P&gt;Thanks again for all of your help.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 14:51:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timecharts-and-Multiple-Operating-Systems/m-p/498516#M138905</guid>
      <dc:creator>giventofly08</dc:creator>
      <dc:date>2019-10-07T14:51:15Z</dc:date>
    </item>
  </channel>
</rss>

