<?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: How to display the result in a graph format with timechart as y-axis and field_1, field_2 on x-axis? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-result-in-a-graph-format-with-timechart-as-y/m-p/285952#M86537</link>
    <description>&lt;P&gt;Based on your explanation, it seems that you don't need time chart, because you are doing no aggregation on the extracted value.&lt;BR /&gt;
You can use TABLE instead, just append TABLE with the fields you need, like this:&lt;/P&gt;

&lt;P&gt;source="x" host="b" index="v" sourcetype="z"| rex field=_raw "Msgs=(?[\n]+)" | rex field=_raw "Waits=(?[\n]+)" |TABLE _time Msgs Waits&lt;/P&gt;

&lt;P&gt;After that you choose "Visualization" to "Bar" chart.&lt;BR /&gt;
Click on the "Format" and choose "Stack".&lt;BR /&gt;
You will have "_time" as Y-axis, and values as length of line on the X-axis&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:01:32 GMT</pubDate>
    <dc:creator>haley_swarnapat</dc:creator>
    <dc:date>2020-09-29T11:01:32Z</dc:date>
    <item>
      <title>How to display the result in a graph format with timechart as y-axis and field_1, field_2 on x-axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-result-in-a-graph-format-with-timechart-as-y/m-p/285950#M86535</link>
      <description>&lt;P&gt;The following were some events :-&lt;/P&gt;

&lt;P&gt;[30706/3663031152][Mon Sep 05 2016 03:55:01][CServer.efpp:4719][INFO][sm-Server-3444] Thread pool: Msgs=12345678 Waits=87654321 Misses=12348765 Max HP Msg=7 Max NP Msg=1643 Current Depth=0 Max Depth=1643 Current High Depth=0 Current Norm Depth=0 Current Threads=16 Max Threads=16 Busy Threads=14&lt;/P&gt;

&lt;P&gt;[30706/3663031152][Mon Sep 05 2016 04:55:01][CServer.efpp:4719][INFO][sm-Server-3554] Thread pool: Msgs=32456789 Waits=67894563 Misses=12348765 Max HP Msg=7 Max NP Msg=1643 Current Depth=0 Max Depth=1643 Current High Depth=0 Current Norm Depth=0 Current Threads=16 Max Threads=16 Busy Threads=14&lt;/P&gt;

&lt;P&gt;So now i want to display the result as x and y axis in such a way that timechart on y-axis and Msgs,Waits on x-axis based on their field values not count.&lt;/P&gt;

&lt;P&gt;I had written half of the search as follows :-&lt;/P&gt;

&lt;P&gt;source="x" host="b" index="v" sourcetype="z"| rex  field=_raw "Msgs=(?[\n]+)" | rex  field=_raw "Waits=(?[\n]+)" |&lt;/P&gt;

&lt;P&gt;After extracting Msgs and Waits I am not sure how to continue the search.&lt;/P&gt;

&lt;P&gt;For Example If the results are as follows :-&lt;BR /&gt;
timechart                           field_1                            field_2&lt;BR /&gt;
2016-08-12                         26                                     56&lt;BR /&gt;
2016-09-23                          23                                    234&lt;/P&gt;

&lt;P&gt;Now from the above result I want to display a graph in which timechart on y-axis and field_1,field_2 on x-axis. So for 2016-08-12 the graph should be as  field_2 line is greater than field_1 line since field_2 value is greater than field_1. like that the graph should go on.&lt;/P&gt;

&lt;P&gt;Note :- I know how to write a search for count but here I was looking the result based on the field values which I am stuck at&lt;/P&gt;

&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-result-in-a-graph-format-with-timechart-as-y/m-p/285950#M86535</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2020-09-29T11:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the result in a graph format with timechart as y-axis and field_1, field_2 on x-axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-result-in-a-graph-format-with-timechart-as-y/m-p/285951#M86536</link>
      <description>&lt;P&gt;First, a timechart always has time on the x-axis. Second, you can extract the values for waits and messages, but what statistic do you want to calculate per day (which is how you are showing your table) - average wait, total messages?? It is possible to show just the raw values - but this is problematic if you have multiple values within a timespan... Finally, do you want to report by day - or by hour or ...?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 06:28:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-result-in-a-graph-format-with-timechart-as-y/m-p/285951#M86536</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-09-16T06:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the result in a graph format with timechart as y-axis and field_1, field_2 on x-axis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-result-in-a-graph-format-with-timechart-as-y/m-p/285952#M86537</link>
      <description>&lt;P&gt;Based on your explanation, it seems that you don't need time chart, because you are doing no aggregation on the extracted value.&lt;BR /&gt;
You can use TABLE instead, just append TABLE with the fields you need, like this:&lt;/P&gt;

&lt;P&gt;source="x" host="b" index="v" sourcetype="z"| rex field=_raw "Msgs=(?[\n]+)" | rex field=_raw "Waits=(?[\n]+)" |TABLE _time Msgs Waits&lt;/P&gt;

&lt;P&gt;After that you choose "Visualization" to "Bar" chart.&lt;BR /&gt;
Click on the "Format" and choose "Stack".&lt;BR /&gt;
You will have "_time" as Y-axis, and values as length of line on the X-axis&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-result-in-a-graph-format-with-timechart-as-y/m-p/285952#M86537</guid>
      <dc:creator>haley_swarnapat</dc:creator>
      <dc:date>2020-09-29T11:01:32Z</dc:date>
    </item>
  </channel>
</rss>

