<?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 embed a timechart visualization from a Splunk query into a web app? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439838#M125111</link>
    <description>&lt;P&gt;You have two basic options for providing visual data in an external application with Splunk. &lt;/P&gt;

&lt;P&gt;Option 1: Grab the data with directly from a job. Then using a local application turn that data into a visualization. &lt;/P&gt;

&lt;P&gt;Option 2: Use the &lt;A href="http://dev.splunk.com/view/SP-CAAAEWR"&gt;SplunkJS&lt;/A&gt; Framework. To both pull the data from Splunk and create the visualization. &lt;/P&gt;

&lt;P&gt;Option 2 in my opinion is a little bit easier since you don't need to learn how to convert the data to be usable by whatever viz tool you're going to choose, ie (Ds3.js).  You can either jump over to the SplunkJS manual, or there is a really simple version in &lt;BR /&gt;
"Learning Splunk Web Framework" by Vincent Sesto/Packt Pub 9781786462947 .&lt;/P&gt;

&lt;P&gt;The basics though are: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Install a websever Nginx or Apache&lt;/LI&gt;
&lt;LI&gt;Configure a proxy between the webserver and Splunk &lt;/LI&gt;
&lt;LI&gt;Install the SplunkJS SDK&lt;/LI&gt;
&lt;LI&gt;Add HTML / JS for search&lt;/LI&gt;
&lt;LI&gt;Add HTML / JS for charts&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Thu, 30 Aug 2018 17:03:18 GMT</pubDate>
    <dc:creator>aromanauskas</dc:creator>
    <dc:date>2018-08-30T17:03:18Z</dc:date>
    <item>
      <title>How to embed a timechart visualization from a Splunk query into a web app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439837#M125110</link>
      <description>&lt;P&gt;I have the following Splunk query that produces the following visualization:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5711i88C9485A09D1872B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I would like to embed this exact visualization into a web app using an iframe. How can I do this?&lt;/P&gt;

&lt;P&gt;Currently, I am using the Splunk HTTP REST API and can submit &amp;amp; get the results back from this search using the following endpoint:&lt;BR /&gt;
&lt;CODE&gt;/servicesNS/nameofmyapp/nameofmynamespace/search/jobs/1535641234.45678?output_mode=json&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;However, I would like a src URL to the visualization that can be embedded in an iframe. Is there an endpoint that I can query instead that will give the URL to the visualization?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 15:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439837#M125110</guid>
      <dc:creator>emiliavanderwer</dc:creator>
      <dc:date>2018-08-30T15:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed a timechart visualization from a Splunk query into a web app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439838#M125111</link>
      <description>&lt;P&gt;You have two basic options for providing visual data in an external application with Splunk. &lt;/P&gt;

&lt;P&gt;Option 1: Grab the data with directly from a job. Then using a local application turn that data into a visualization. &lt;/P&gt;

&lt;P&gt;Option 2: Use the &lt;A href="http://dev.splunk.com/view/SP-CAAAEWR"&gt;SplunkJS&lt;/A&gt; Framework. To both pull the data from Splunk and create the visualization. &lt;/P&gt;

&lt;P&gt;Option 2 in my opinion is a little bit easier since you don't need to learn how to convert the data to be usable by whatever viz tool you're going to choose, ie (Ds3.js).  You can either jump over to the SplunkJS manual, or there is a really simple version in &lt;BR /&gt;
"Learning Splunk Web Framework" by Vincent Sesto/Packt Pub 9781786462947 .&lt;/P&gt;

&lt;P&gt;The basics though are: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Install a websever Nginx or Apache&lt;/LI&gt;
&lt;LI&gt;Configure a proxy between the webserver and Splunk &lt;/LI&gt;
&lt;LI&gt;Install the SplunkJS SDK&lt;/LI&gt;
&lt;LI&gt;Add HTML / JS for search&lt;/LI&gt;
&lt;LI&gt;Add HTML / JS for charts&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 30 Aug 2018 17:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439838#M125111</guid>
      <dc:creator>aromanauskas</dc:creator>
      <dc:date>2018-08-30T17:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed a timechart visualization from a Splunk query into a web app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439839#M125112</link>
      <description>&lt;P&gt;Thank you for your response. Option 2 is a little bit complicated because the web app is ASP.NET and written in C#. The way we have our current framework is we wrote a custom C# Splunk SDK that grabs the data. &lt;/P&gt;

&lt;P&gt;Is there any way to pull the data from Splunk within our C# SDK and pass the data to the SplunkJS framework to create the visualization (instead of letting the SplunkJS SDK do both of the steps)?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 17:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439839#M125112</guid>
      <dc:creator>emiliavanderwer</dc:creator>
      <dc:date>2018-08-30T17:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed a timechart visualization from a Splunk query into a web app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439840#M125113</link>
      <description>&lt;P&gt;hey @emiliavanderwerf , Looks like @aronmanauskas answered your question! What a nice user. Would you mind tossing them a like? Our users live for those likes &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 17:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439840#M125113</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-08-30T17:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed a timechart visualization from a Splunk query into a web app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439841#M125114</link>
      <description>&lt;P&gt;Liked. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 17:30:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439841#M125114</guid>
      <dc:creator>emiliavanderwer</dc:creator>
      <dc:date>2018-08-30T17:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed a timechart visualization from a Splunk query into a web app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439842#M125115</link>
      <description>&lt;P&gt;If you are using a homegrown C# SDK or the &lt;A href="http://dev.splunk.com/csharp"&gt;Splunk C# SDK&lt;/A&gt; then there are a few options. &lt;/P&gt;

&lt;P&gt;Option 1, use D3.js for the visualization: &lt;BR /&gt;
&lt;A href="https://code.msdn.microsoft.com/D3-Graphs-and-Charts-in-4146e258"&gt;ASP example for D3&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Option 2, convert OR incorporate the Splunk C# SDK which has the ability to create charts.  Timeline for example: &lt;A href="http://docs.splunk.com/DocumentationStatic/CshrpSDK/2.2.8/Splunk.Client/html/b9c04bfd-0d6d-fa33-7887-0d5bf3cd25ec.htm"&gt;Charting Adapter&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 18:17:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-embed-a-timechart-visualization-from-a-Splunk-query-into/m-p/439842#M125115</guid>
      <dc:creator>aromanauskas</dc:creator>
      <dc:date>2018-08-30T18:17:14Z</dc:date>
    </item>
  </channel>
</rss>

