<?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 Twitter widget in a Splunk dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-a-Twitter-widget-in-a-Splunk-dashboard/m-p/230324#M14298</link>
    <description>&lt;P&gt;The widget won't work any more as the widget functionality has been deprecated by twitter. Please use &lt;A href="https://publish.twitter.com/#"&gt;twitter publish&lt;/A&gt; going forward.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://publish.twitter.com"&gt;https://publish.twitter.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Oct 2018 07:41:57 GMT</pubDate>
    <dc:creator>chandrasekharko</dc:creator>
    <dc:date>2018-10-05T07:41:57Z</dc:date>
    <item>
      <title>How to embed a Twitter widget in a Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-a-Twitter-widget-in-a-Splunk-dashboard/m-p/230321#M14295</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;
As a newbie i'm looking to create my first dashboard. I have created all the preset panels I need but i'm looking to embed a Twitter 'widget' on the dashboard too.&lt;BR /&gt;
Twitter provided the url but i'm unsure of how I add this - I have tried using an iframe to display but when saved it just gives a blank frame..&lt;/P&gt;

&lt;P&gt;The widget looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;a class="twitter-timeline" data-dnt="true" href="https://twitter.com/search?q=Example Topic” data-widget-id=“*WIDGET-ID*”&amp;gt;Tweets about Example Topic&amp;lt;/a&amp;gt;
        &amp;lt;script&amp;gt;!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");&amp;lt;/script&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I've tried a generic iframe and it just appears blank..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;Testing HTML&amp;lt;/title&amp;gt;
    &amp;lt;html&amp;gt;
      &amp;lt;iframe src="https://www.google.com"/&amp;gt;
    &amp;lt;/html&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Many thanks &lt;BR /&gt;
Jon&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 10:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-a-Twitter-widget-in-a-Splunk-dashboard/m-p/230321#M14295</guid>
      <dc:creator>jonlaw</dc:creator>
      <dc:date>2016-10-05T10:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed a Twitter widget in a Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-a-Twitter-widget-in-a-Splunk-dashboard/m-p/230322#M14296</link>
      <description>&lt;P&gt;So I'm going to answer the question about how to embed third party javascript widgets into Splunk.&lt;/P&gt;

&lt;P&gt;The first thing you will need to do is convert your dashboard to HTML, &lt;A href="http://dev.splunk.com/view/webframework-developapps/SP-CAAAEM2"&gt;http://dev.splunk.com/view/webframework-developapps/SP-CAAAEM2&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There are trade offs between using Simple XML and HTML that is covered in the link that you should consider.&lt;/P&gt;

&lt;P&gt;Once this is done edit it and then slip in the javascript widget code in the div class dashboard-body section of the HTML document.&lt;/P&gt;

&lt;P&gt;For example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;div class="dashboard-body container-fluid main-section-body" data-role="main"&amp;gt;
    &amp;lt;div class="dashboard-header clearfix"&amp;gt;
        &amp;lt;h2&amp;gt;Twitter Widget HTML&amp;lt;/h2&amp;gt;
    &amp;lt;/div&amp;gt;

    &amp;lt;a class="twitter-timeline"  href="https://twitter.com/hashtag/corgi" data-widget-id="*WIDGET-ID*"&amp;gt;#corgi Tweets&amp;lt;/a&amp;gt;
    &amp;lt;script&amp;gt;!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");&amp;lt;/script&amp;gt;

&amp;lt;/div&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All being well you will end up with something like this.&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/1966i96FE75F70AEAA06D/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;For your particular use case you might also want to consider pulling the raw twitter events into Splunk first so they can be analysed to your specific needs and then presented on a dashboard.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 16:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-a-Twitter-widget-in-a-Splunk-dashboard/m-p/230322#M14296</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2016-10-11T16:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed a Twitter widget in a Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-a-Twitter-widget-in-a-Splunk-dashboard/m-p/230323#M14297</link>
      <description>&lt;P&gt;Works perfectly thanks. I'm already pulling the raw data in but having a visual widget is really helpful at quick glance... Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 18:48:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-a-Twitter-widget-in-a-Splunk-dashboard/m-p/230323#M14297</guid>
      <dc:creator>jonlaw</dc:creator>
      <dc:date>2016-10-11T18:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed a Twitter widget in a Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-a-Twitter-widget-in-a-Splunk-dashboard/m-p/230324#M14298</link>
      <description>&lt;P&gt;The widget won't work any more as the widget functionality has been deprecated by twitter. Please use &lt;A href="https://publish.twitter.com/#"&gt;twitter publish&lt;/A&gt; going forward.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://publish.twitter.com"&gt;https://publish.twitter.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 07:41:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-embed-a-Twitter-widget-in-a-Splunk-dashboard/m-p/230324#M14298</guid>
      <dc:creator>chandrasekharko</dc:creator>
      <dc:date>2018-10-05T07:41:57Z</dc:date>
    </item>
  </channel>
</rss>

