<?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: Trigger a PDF via the command line in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147471#M3244</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have exactly same requirement where create a dashboard and schedule PDF delivery for that.&lt;BR /&gt;
I am new to splunk REST API concepts. Can you please explain the script mentioned here&lt;BR /&gt;
what is PDF Trigger here? Is it an alert with name whatever_alert?&lt;BR /&gt;
what is &lt;EM&gt;ScheduledView&lt;/EM&gt;_mypdf, it also looks like an alert ?&lt;/P&gt;

&lt;P&gt;Where is whatever_alert used in the script?&lt;BR /&gt;
!/bin/bash&lt;BR /&gt;
 curl -k -u admin:password &lt;A href="https://localhost:8089/servicesNS/admin/search/saved/searches/_ScheduledView__mypdf/dispatch" target="_blank"&gt;https://localhost:8089/servicesNS/admin/search/saved/searches/_ScheduledView__mypdf/dispatch&lt;/A&gt; -d trigger_actions=1&lt;BR /&gt;
How does splunk server know that whatever_alert needs to be called for this &lt;EM&gt;ScheduledView&lt;/EM&gt;_mypdf?&lt;/P&gt;

&lt;P&gt;I need to do all these using Splunk Java SDK. Any step by step instruction on how to do this  will be appreciated. Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 23:54:54 GMT</pubDate>
    <dc:creator>shrtando</dc:creator>
    <dc:date>2020-09-29T23:54:54Z</dc:date>
    <item>
      <title>Trigger a PDF via the command line</title>
      <link>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147464#M3237</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I would like to create a script that would trigger a pdf creation of a dashboard.  I understand how to create a pdf and send via a saved search, but I would like to use a script to perform the same function.&lt;/P&gt;

&lt;P&gt;I am having a little trouble understanding how the pdf renderer works and cannot find any documentation that would describe how to do this...Does anyone have any ideas?&lt;/P&gt;

&lt;P&gt;Regards Vince&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 09:34:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147464#M3237</guid>
      <dc:creator>vincesesto</dc:creator>
      <dc:date>2013-11-19T09:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a PDF via the command line</title>
      <link>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147465#M3238</link>
      <description>&lt;P&gt;Sorry, just to clarify this a bit further, the view I have set up is complex and has a lot of graphs, etc. So it is not something that I can run as a search and then use sendemail.  I am wanting to generate the pdf from the html page and then forward this pdf onto an email address, similar to using a scheduled search but I need to be able to trigger it from a script&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 03:13:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147465#M3238</guid>
      <dc:creator>vincesesto</dc:creator>
      <dc:date>2013-11-20T03:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a PDF via the command line</title>
      <link>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147466#M3239</link>
      <description>&lt;P&gt;one more try to see if anyone has any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 21:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147466#M3239</guid>
      <dc:creator>vincesesto</dc:creator>
      <dc:date>2013-11-26T21:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a PDF via the command line</title>
      <link>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147467#M3240</link>
      <description>&lt;P&gt;This works!&lt;/P&gt;

&lt;H3&gt;PDF TRIGGER&lt;/H3&gt;

&lt;PRE&gt;&lt;CODE&gt;[whatever_alert]
action.script = 1
action.script.filename = whatever_pdf_trigger.sh
cron_schedule = */10 * * * *
dispatch.earliest_time = -2m@m
dispatch.latest_time = now
displayview = flashtimeline
enableSched = 1
counttype = number of events
relation = greater than
quantity = 0
search = index=ops | head 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H2&gt;PDF&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt;[_ScheduledView__mypdf]
action.email = 1
action.email.maxtime = 60m
action.email.paperorientation = portrait
action.email.papersize = letter
action.email.pdfview = mypdf
action.email.sendpdf = 1
action.email.to = your_email@youraddress.com
action.email.ttl = 10
cron_schedule = */5 * * * *
description = scheduled search for view name=mypdf
dispatch.earliest_time = 1
dispatch.latest_time = 2
enableSched = 0
is_visible = 0
search = | noop
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H2&gt;Script:&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt;!/bin/bash
curl -k -u admin:password &lt;A href="https://localhost:8089/servicesNS/admin/search/saved/searches/_ScheduledView__mypdf/dispatch" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/saved/searches/_ScheduledView__mypdf/dispatch&lt;/A&gt; -d trigger_actions=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Feb 2014 16:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147467#M3240</guid>
      <dc:creator>Kyle_Jackson</dc:creator>
      <dc:date>2014-02-06T16:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a PDF via the command line</title>
      <link>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147468#M3241</link>
      <description>&lt;P&gt;Very nice - this works great. &lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2014 18:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147468#M3241</guid>
      <dc:creator>wlouisharris</dc:creator>
      <dc:date>2014-02-06T18:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a PDF via the command line</title>
      <link>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147469#M3242</link>
      <description>&lt;P&gt;It might be a good idea to use a different user than admin. If you do the url changes to:&lt;BR /&gt;
&lt;A href="https://localhost:8089/servicesNS/my_user/search/saved/searches/_ScheduledView__mypdf/dispatch"&gt;https://localhost:8089/servicesNS/my_user/search/saved/searches/_ScheduledView__mypdf/dispatch&lt;/A&gt; -d trigger_actions=1&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 11:28:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147469#M3242</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2014-09-05T11:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a PDF via the command line</title>
      <link>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147470#M3243</link>
      <description>&lt;P&gt;If that user expires because they leave the company, then what? Is there a caveat to using admin?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 11:46:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147470#M3243</guid>
      <dc:creator>Kyle_Jackson</dc:creator>
      <dc:date>2014-09-05T11:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a PDF via the command line</title>
      <link>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147471#M3244</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have exactly same requirement where create a dashboard and schedule PDF delivery for that.&lt;BR /&gt;
I am new to splunk REST API concepts. Can you please explain the script mentioned here&lt;BR /&gt;
what is PDF Trigger here? Is it an alert with name whatever_alert?&lt;BR /&gt;
what is &lt;EM&gt;ScheduledView&lt;/EM&gt;_mypdf, it also looks like an alert ?&lt;/P&gt;

&lt;P&gt;Where is whatever_alert used in the script?&lt;BR /&gt;
!/bin/bash&lt;BR /&gt;
 curl -k -u admin:password &lt;A href="https://localhost:8089/servicesNS/admin/search/saved/searches/_ScheduledView__mypdf/dispatch" target="_blank"&gt;https://localhost:8089/servicesNS/admin/search/saved/searches/_ScheduledView__mypdf/dispatch&lt;/A&gt; -d trigger_actions=1&lt;BR /&gt;
How does splunk server know that whatever_alert needs to be called for this &lt;EM&gt;ScheduledView&lt;/EM&gt;_mypdf?&lt;/P&gt;

&lt;P&gt;I need to do all these using Splunk Java SDK. Any step by step instruction on how to do this  will be appreciated. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/147471#M3244</guid>
      <dc:creator>shrtando</dc:creator>
      <dc:date>2020-09-29T23:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a PDF via the command line</title>
      <link>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/753581#M12704</link>
      <description>&lt;P&gt;Could you share the script ?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 22:54:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Trigger-a-PDF-via-the-command-line/m-p/753581#M12704</guid>
      <dc:creator>josemanm12</dc:creator>
      <dc:date>2025-09-24T22:54:50Z</dc:date>
    </item>
  </channel>
</rss>

