<?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 How to implement flame graphs using Splunk? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225578#M13986</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
what are the ways to implement flame graphs in Splunk?&lt;/P&gt;

&lt;P&gt;do we have any examples to implement flame graphs in Splunk?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 17:06:43 GMT</pubDate>
    <dc:creator>rajgowd1</dc:creator>
    <dc:date>2017-01-10T17:06:43Z</dc:date>
    <item>
      <title>How to implement flame graphs using Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225578#M13986</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
what are the ways to implement flame graphs in Splunk?&lt;/P&gt;

&lt;P&gt;do we have any examples to implement flame graphs in Splunk?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 17:06:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225578#M13986</guid>
      <dc:creator>rajgowd1</dc:creator>
      <dc:date>2017-01-10T17:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement flame graphs using Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225579#M13987</link>
      <description>&lt;P&gt;You can use a D3 javascript visualization here is one for a flame graph &lt;A href="https://github.com/spiermar/d3-flame-graph"&gt;https://github.com/spiermar/d3-flame-graph&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;We have some examples of using D3 visualizations in Splunk if you download the 6.x dashboard examples app &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;. There are some examples of using different D3 visualizations. However, I haven't seen any for flame graphs.&lt;/P&gt;

&lt;P&gt;This will probably require a bit of knowledge about javascript. &lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 17:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225579#M13987</guid>
      <dc:creator>kmccririe_splun</dc:creator>
      <dc:date>2017-01-10T17:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement flame graphs using Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225580#M13988</link>
      <description>&lt;P&gt;thank you.can you help us some search queries to display graphs in flames.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 00:41:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225580#M13988</guid>
      <dc:creator>rajgowd1</dc:creator>
      <dc:date>2017-01-11T00:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement flame graphs using Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225581#M13989</link>
      <description>&lt;P&gt;I was afraid you would ask that :P. I will try to get one working in my spare time. I will let you know!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 15:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225581#M13989</guid>
      <dc:creator>kmccririe_splun</dc:creator>
      <dc:date>2017-01-11T15:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement flame graphs using Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225582#M13990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I was intrigued to find a solution, and together with my colleague @dohrendorf_consist we came up with the following. It's only in a proof of concept stage so far, not tested and probably full of bugs &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;You generate data using search with &lt;CODE&gt;stats by&lt;/CODE&gt;, so that all your split-by fields can later represent a level in the hierarchy of the visualization. For example, you can use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | fillnull value="-" group name | stats count by host sourcetype group name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The data should only contain one metric, so no more than one &lt;CODE&gt;count&lt;/CODE&gt; or &lt;CODE&gt;avg(something)&lt;/CODE&gt;. As kmccririe noted, some javascript is indeed needed to convert the search results to JSON which can then be used by the visualization. See the pastebin code appended; it assumes you have the file d3.v3.min.js located in your appserver/static folder of your app next to the file containing the code, and it is also where the css file should reside. You will have to include this custom code along with the flame graph css in your dashboard, your first line of Simple XML could look something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard script="flameGraphCustomJsCode.js" stylesheet="d3.flameGraph.css"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;d3 js from &lt;A href="https://d3js.org/d3.v3.min.js"&gt;https://d3js.org/d3.v3.min.js&lt;/A&gt;&lt;BR /&gt;
flame graph css from &lt;A href="https://raw.githubusercontent.com/spiermar/d3-flame-graph/master/src/d3.flameGraph.css"&gt;https://raw.githubusercontent.com/spiermar/d3-flame-graph/master/src/d3.flameGraph.css&lt;/A&gt;&lt;BR /&gt;
js code: &lt;A href="http://pastebin.com/2n8UaxnZ"&gt;http://pastebin.com/2n8UaxnZ&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is what it looks like with splunk data: &lt;IMG src="https://postimg.org/image/uc9vy7143/" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Feel free to ask any questions!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 15:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225582#M13990</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2017-01-16T15:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement flame graphs using Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225583#M13991</link>
      <description>&lt;P&gt;There's now a modular viz on &lt;A href="https://splunkbase.splunk.com/app/3468/"&gt;splunkbase&lt;/A&gt; from @dohrendorf_consist you should check out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 12:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-implement-flame-graphs-using-Splunk/m-p/225583#M13991</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2017-02-03T12:38:02Z</dc:date>
    </item>
  </channel>
</rss>

