<?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: Dynamic number of timecharts of field values by another field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354725#M104971</link>
    <description>&lt;P&gt;Changing the span didn't work unfortunately. However DalJeanis seems to have figured it out. Now to process how that worked... &lt;/P&gt;

&lt;P&gt;Thanks for the help, though!&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 20:26:59 GMT</pubDate>
    <dc:creator>j4adam</dc:creator>
    <dc:date>2017-11-07T20:26:59Z</dc:date>
    <item>
      <title>Dynamic number of timecharts of field values by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354716#M104962</link>
      <description>&lt;P&gt;Sorry if the description isn't clear. Essentially, I'm making a dashboard to display the trends of a project from a list of projects. Each project has multiple tests that can be run with each test having multiple possible results (pass, fail, warning). I currently have a dashboard showing the trend of all tests across time as a general trend using this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| timechart count by test_result | untable _time test_result count | eventstats sum(count) as Total by _time | eval perc=round(count*100/Total,2) | table _time test_result perc | xyseries _time test_result perc&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;What I would like to do is below this have a timechart of each test showing the individual test results over time. The new  &lt;CODE&gt;trellis&lt;/CODE&gt; option seems like it should be the answer to my question, but I haven't had any luck.&lt;/P&gt;

&lt;P&gt;Basically the goal is the same search above but trellised out into individual timecharts per test_name rather than all of them in one.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 19:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354716#M104962</guid>
      <dc:creator>j4adam</dc:creator>
      <dc:date>2017-11-07T19:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of timecharts of field values by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354717#M104963</link>
      <description>&lt;P&gt;Have you tried running timechart after calculating percentage, and then using the trellis visualization?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| timechart count by test_result | untable _time test_result count | eventstats sum(count) as Total by _time | eval perc=round(count*100/Total,2) | timechart values(perc) AS perc by test_result&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 19:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354717#M104963</guid>
      <dc:creator>nileena</dc:creator>
      <dc:date>2017-11-07T19:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of timecharts of field values by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354718#M104964</link>
      <description>&lt;P&gt;Thanks for the reply! That still ends up creating a trellis of the 3 (timechart for fails, for passes for warnings) with the percentages of each. What I need is a timechart for each test that contains the trends of each of the pass/fail/warning in the same chart.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 19:36:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354718#M104964</guid>
      <dc:creator>j4adam</dc:creator>
      <dc:date>2017-11-07T19:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of timecharts of field values by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354719#M104965</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/37517"&gt;@j4adam&lt;/a&gt;, refer to the following FEATURE REQUEST for Trellis Layout with Timechart. Since _time becomes one of the series for depiction in Timechart, you can either use test_result or perc but not both while splitting the chart.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/588081/feature-request-trellis-timechart-with-color-by-fi.html" target="_blank"&gt;https://answers.splunk.com/answers/588081/feature-request-trellis-timechart-with-color-by-fi.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354719#M104965</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T16:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of timecharts of field values by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354720#M104966</link>
      <description>&lt;P&gt;Oh got it. So I assume you have another field (say, test) which indicates the test name or ID.&lt;BR /&gt;
Also, assuming you can have 3 values for test_result: pass, fail and warning.&lt;BR /&gt;
In which case, you could try:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| timechart count(test_result="pass") AS pass_count count(test_result="fail") AS fail_count count(test_result="warning") AS warning_count  count AS Total by test | eval perc_pass=round(pass_count*100/Total,2) | eval perc_fail=round(fail_count*100/Total,2) | eval perc_warning=round(warning_count*100/Total,2) | timechart values(perc_pass) AS perc_pass  values(perc_fail) AS perc_fail values(perc_warning) AS perc_warning by test&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Does this make sense?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 19:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354720#M104966</guid>
      <dc:creator>nileena</dc:creator>
      <dc:date>2017-11-07T19:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of timecharts of field values by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354721#M104967</link>
      <description>&lt;P&gt;It does make sense, kind of. I have a field named test_name. I see what you're trying to do here, but I'm not entirely sure what the result is when I run it. I've ended up with a trellis of test_names with values charted (big step here) but it's just "Total" and "warning" but Warning is always 0 and Total has spikes that go back to 0 immediate after a single point after this portion:  &lt;CODE&gt;| eval perc_pass=round(pass_count*100/Total,2) | eval perc_fail=round(fail_count*100/Total,2) | eval perc_warning=round(warning_count*100/Total,2)&lt;/CODE&gt; If I add the other stuff it does not work unless I have just a single value and that also only shows one result.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354721#M104967</guid>
      <dc:creator>j4adam</dc:creator>
      <dc:date>2020-09-29T16:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of timecharts of field values by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354722#M104968</link>
      <description>&lt;P&gt;Could you try specifying the span for both time charts? (The same span for both)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 20:14:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354722#M104968</guid>
      <dc:creator>nileena</dc:creator>
      <dc:date>2017-11-07T20:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of timecharts of field values by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354723#M104969</link>
      <description>&lt;P&gt;Try something like this as your base search...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search here
| bin _time span=15m
| stats count as resultcount by _time test_name test_result
| eventstats sum(resultcount) as totalcount by _time test_name
| eval {test_result} = round(resultcount/totalcount,2)
| fields -  resultcount totalcount
| stats values(*) as * by _time test_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Adjust the span as needed.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 20:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354723#M104969</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-11-07T20:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of timecharts of field values by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354724#M104970</link>
      <description>&lt;P&gt;wow, that did it!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 20:25:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354724#M104970</guid>
      <dc:creator>j4adam</dc:creator>
      <dc:date>2017-11-07T20:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic number of timecharts of field values by another field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354725#M104971</link>
      <description>&lt;P&gt;Changing the span didn't work unfortunately. However DalJeanis seems to have figured it out. Now to process how that worked... &lt;/P&gt;

&lt;P&gt;Thanks for the help, though!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 20:26:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamic-number-of-timecharts-of-field-values-by-another-field/m-p/354725#M104971</guid>
      <dc:creator>j4adam</dc:creator>
      <dc:date>2017-11-07T20:26:59Z</dc:date>
    </item>
  </channel>
</rss>

