<?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: Creating a chart by month in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-chart-by-month/m-p/436506#M45404</link>
    <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=client_snsr_tcg_unix_webservices source="/var/log/tomcat8/catalina.out" "GetPolicy.doPost(56)" OR "ActivateNode.doPost(94)" 
| stats count(eval(like(_raw,"%GetPolicy.doPost(56)%"))) as "GetPolicy_doPost" count(eval(like(_raw,"%ActivateNode.doPost(94)%"))) as "ActivateNode_doPost" by date_month 
| eval Difference=GetPolicy_doPost-ActivateNode_doPost
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then go to &lt;CODE&gt;visualization&lt;/CODE&gt; and select appropriate &lt;CODE&gt;chart&lt;/CODE&gt; to see graph view &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2019 20:22:00 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2019-08-08T20:22:00Z</dc:date>
    <item>
      <title>Creating a chart by month</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-chart-by-month/m-p/436505#M45403</link>
      <description>&lt;P&gt;I am trying to make a line graph that shows that months of the year as the x-axis. There should be three lines in this graph. The first line should show the amount of occurrences of the "GetPolicy.doPost(56)" string in each month. The second line should show the amount of occurrences of the string "ActivateNode.doPost(94)" and the third line should show the difference of the occurrences between the two above strings. Below I calculated the difference and I am very new to splunk and I don't know how to move forward with creating the graph.&lt;/P&gt;

&lt;P&gt;index= client_snsr_tcg_unix_webservices source="/var/log/tomcat8/catalina.out" "GetPolicy.doPost(56)"&lt;BR /&gt;&lt;BR /&gt;
| stats count as start&lt;BR /&gt;&lt;BR /&gt;
| appendcols [search index= client_snsr_tcg_unix_webservices source="/var/log/tomcat8/catalina.out" "ActivateNode.doPost(94)"&lt;BR /&gt;&lt;BR /&gt;
| stats count as end ]&lt;BR /&gt;&lt;BR /&gt;
| eval Difference=start-end&lt;BR /&gt;&lt;BR /&gt;
| table Difference                                                     &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:40:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-chart-by-month/m-p/436505#M45403</guid>
      <dc:creator>elijahm</dc:creator>
      <dc:date>2020-09-30T01:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a chart by month</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-chart-by-month/m-p/436506#M45404</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=client_snsr_tcg_unix_webservices source="/var/log/tomcat8/catalina.out" "GetPolicy.doPost(56)" OR "ActivateNode.doPost(94)" 
| stats count(eval(like(_raw,"%GetPolicy.doPost(56)%"))) as "GetPolicy_doPost" count(eval(like(_raw,"%ActivateNode.doPost(94)%"))) as "ActivateNode_doPost" by date_month 
| eval Difference=GetPolicy_doPost-ActivateNode_doPost
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then go to &lt;CODE&gt;visualization&lt;/CODE&gt; and select appropriate &lt;CODE&gt;chart&lt;/CODE&gt; to see graph view &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 20:22:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-chart-by-month/m-p/436506#M45404</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-08-08T20:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a chart by month</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-chart-by-month/m-p/436507#M45405</link>
      <description>&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 20:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-a-chart-by-month/m-p/436507#M45405</guid>
      <dc:creator>elijahm</dc:creator>
      <dc:date>2019-08-08T20:50:03Z</dc:date>
    </item>
  </channel>
</rss>

