<?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 Report export  - feed a Word Template in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Report-export-feed-a-Word-Template/m-p/105767#M1566</link>
    <description>&lt;P&gt;My boss has to periodically send about 50 different .docx reports with our systems monthly events and performance details to some clients.&lt;/P&gt;

&lt;P&gt;I thought about mapping each Splunk Dashboard unique image IDs to a custom .docx template with image placeholders and calling PyWin32 (or python-docx) to insert those images, replacing each placeholder with the corresponding image.  &lt;/P&gt;

&lt;P&gt;Thing is, do the Dashboard images have unique IDs?&lt;BR /&gt;&lt;BR /&gt;
Does Splunk allow exporting those images this way?&lt;BR /&gt;
This can be a eliminating factor deciding between Splunk and a (in my opinion much inferior) tool some other company is trying to sell us.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Mar 2012 17:46:51 GMT</pubDate>
    <dc:creator>splunk_zen</dc:creator>
    <dc:date>2012-03-30T17:46:51Z</dc:date>
    <item>
      <title>Report export  - feed a Word Template</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Report-export-feed-a-Word-Template/m-p/105767#M1566</link>
      <description>&lt;P&gt;My boss has to periodically send about 50 different .docx reports with our systems monthly events and performance details to some clients.&lt;/P&gt;

&lt;P&gt;I thought about mapping each Splunk Dashboard unique image IDs to a custom .docx template with image placeholders and calling PyWin32 (or python-docx) to insert those images, replacing each placeholder with the corresponding image.  &lt;/P&gt;

&lt;P&gt;Thing is, do the Dashboard images have unique IDs?&lt;BR /&gt;&lt;BR /&gt;
Does Splunk allow exporting those images this way?&lt;BR /&gt;
This can be a eliminating factor deciding between Splunk and a (in my opinion much inferior) tool some other company is trying to sell us.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 17:46:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Report-export-feed-a-Word-Template/m-p/105767#M1566</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2012-03-30T17:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Report export  - feed a Word Template</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Report-export-feed-a-Word-Template/m-p/105768#M1567</link>
      <description>&lt;P&gt;I don't think what your suggesting is possible. Splunk doesn't display graphs as images. In the 4.2 &amp;amp; previous versions it was a flash component and that has now been replaced by javascript in 4.3&lt;/P&gt;

&lt;P&gt;I had a similar requirement and eventually decided to use the REST API to fetch data and generate the graphs &amp;amp; docs. Works like a charm.&lt;/P&gt;

&lt;P&gt;The Python (or Java/JavaScript) SDK which handles communication with Splunk makes this pretty easy to accomplish. Combine that with matplotlib (&lt;A href="http://matplotlib.sourceforge.net/"&gt;http://matplotlib.sourceforge.net/&lt;/A&gt;) and you've got a robust solution.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Developer/RESTIntro"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Developer/RESTIntro&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://github.com/splunk/splunk-sdk-python"&gt;https://github.com/splunk/splunk-sdk-python&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2012 09:07:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Report-export-feed-a-Word-Template/m-p/105768#M1567</guid>
      <dc:creator>johandk</dc:creator>
      <dc:date>2012-03-31T09:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Report export  - feed a Word Template</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Report-export-feed-a-Word-Template/m-p/105769#M1568</link>
      <description>&lt;P&gt;johandk, did you use matplotlib to solely plot line graphs over the extracted data or did you specify custom graph types depending on the source data?&lt;BR /&gt;
Also, did you use PyWin32 or Openxmllib for the docs generation?&lt;BR /&gt;
Is it possible for you to share some of that code?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2012 09:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Report-export-feed-a-Word-Template/m-p/105769#M1568</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2012-04-02T09:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Report export  - feed a Word Template</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Report-export-feed-a-Word-Template/m-p/105770#M1569</link>
      <description>&lt;P&gt;Sorry can't share any code. I don't own it. &lt;/P&gt;

&lt;P&gt;Essentially how you use matplotlib is up to you. I did use custom graph types and just parsed the data into the correct format using what I saw in the examples. That created a bunch of jpg's which then got imported into the docs via another internal system of ours.&lt;/P&gt;

&lt;P&gt;Tip: There is an app called new_english which returns data from the Splunk API in JSON format rather than the horrible  default XML. Much easier to work with.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2012 08:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Report-export-feed-a-Word-Template/m-p/105770#M1569</guid>
      <dc:creator>johandk</dc:creator>
      <dc:date>2012-04-04T08:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Report export  - feed a Word Template</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Report-export-feed-a-Word-Template/m-p/105771#M1570</link>
      <description>&lt;P&gt;Thanks johandk.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 08:09:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Report-export-feed-a-Word-Template/m-p/105771#M1570</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2012-04-20T08:09:05Z</dc:date>
    </item>
  </channel>
</rss>

