<?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: Chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516736#M145250</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mvasquez21_0-1598626596705.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10557iCC984DA6002CFF92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mvasquez21_0-1598626596705.png" alt="mvasquez21_0-1598626596705.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Aug 2020 14:56:46 GMT</pubDate>
    <dc:creator>mvasquez21</dc:creator>
    <dc:date>2020-08-28T14:56:46Z</dc:date>
    <item>
      <title>Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516713#M145240</link>
      <description>&lt;P&gt;My boss has asked me to create a chart that shows the number of fired alerts (y-axis) by day of the month (x-axis). I suggested we do this as a stacked chart with each alert represented by a different color. I know the alert variable is "ss_name" and i found this expression to create the "date":&lt;/P&gt;&lt;P&gt;convert timeformat="%m-%d" ctime(_time) AS date&lt;/P&gt;&lt;P&gt;I just cant get the correct syntax to get all 3 elements in to the chart. So far i have this:&lt;/P&gt;&lt;P&gt;index=_audit action="alert_fired" | convert timeformat="%m-%d" ctime(_time) AS date | timechart date by ss_name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:02:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516713#M145240</guid>
      <dc:creator>mvasquez21</dc:creator>
      <dc:date>2020-08-28T14:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516718#M145243</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207748"&gt;@mvasquez21&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;why do you want to complicate the search?&lt;/P&gt;&lt;P&gt;timechart is sufficient for your need:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_audit action="alert_fired" earliest=-30d@d latest=@d
| timechart span=1d count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want to know how many alerts you fired for each kind of alert, you could run something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_audit action="alert_fired" earliest=-30d@d latest=@d
| timechart span=1d count BY ss_name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it depends on the number of different alerts: if they are too many your chart isn't readable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that you want to run a search on a long time (one month) and, if you have many events, this is a very slow search.&lt;/P&gt;&lt;P&gt;So you could schedule this&amp;nbsp; search as a report by night and display it very quickly or schedule a search saving results in a summary index and running the search on the summary index.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:18:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516718#M145243</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-08-28T14:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516719#M145244</link>
      <description>&lt;P&gt;How about something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_audit action="alert_fired" | convert timeformat="%m-%d" ctime(_time) AS date | stats count by ss_name, date&lt;/LI-CODE&gt;&lt;P&gt;Then use a stacked bar chart in your dashboard panel&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:18:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516719#M145244</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-08-28T14:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516724#M145246</link>
      <description>&lt;P&gt;i had tried that one already but it puts count and date as the only x-axis items instead of the ss_name (alerts)&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:38:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516724#M145246</guid>
      <dc:creator>mvasquez21</dc:creator>
      <dc:date>2020-08-28T14:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516725#M145247</link>
      <description>&lt;P&gt;Try adding&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| xyseries date, ss_name, count&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:41:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516725#M145247</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-08-28T14:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516734#M145249</link>
      <description>&lt;P&gt;perfect! thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516734#M145249</guid>
      <dc:creator>mvasquez21</dc:creator>
      <dc:date>2020-08-28T14:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516736#M145250</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mvasquez21_0-1598626596705.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10557iCC984DA6002CFF92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mvasquez21_0-1598626596705.png" alt="mvasquez21_0-1598626596705.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:56:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart/m-p/516736#M145250</guid>
      <dc:creator>mvasquez21</dc:creator>
      <dc:date>2020-08-28T14:56:46Z</dc:date>
    </item>
  </channel>
</rss>

