<?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 Python SDK saved_search.py action options are unclear in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-saved-search-py-action-options-are-unclear/m-p/217389#M2858</link>
    <description>&lt;P&gt;I'm trying to get familiar with Splunk's Python SDK via the provided examples. However, I'm struggling to understand the format expected for actions when creating saved searches.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ ./saved_search.py --operation=create --name=api_test_email --search="unique" --actions=email --action.email.to="user@example.org" --action.email.sender="splunkbot"

Usage: saved_search.py --help for options

saved_search.py: error: no such option: --action.email.to
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The help states: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;"action...": {&lt;BR /&gt;
        'flags': ["--action.&lt;ACTION_TYPE&gt;.&lt;CUSTOM_KEY&gt;"],&lt;BR /&gt;
        'help': "&lt;OPTIONAL for="" create=""&gt; A key/value pair that is specific to the action_type. For example, if actions contains email, then the following keys would be necessary: action.email.to=&lt;A href="mailto:foo@splunk.com" target="_blank"&gt;foo@splunk.com&lt;/A&gt;  and action.email.sender=splunkbot. For scripts: action.script.filename=doodle.py (note: script is run from $SPLUNK_HOME/bin/scripts/)"&lt;/OPTIONAL&gt;&lt;/CUSTOM_KEY&gt;&lt;/ACTION_TYPE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 07:48:16 GMT</pubDate>
    <dc:creator>vwilson</dc:creator>
    <dc:date>2020-09-29T07:48:16Z</dc:date>
    <item>
      <title>Python SDK saved_search.py action options are unclear</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-saved-search-py-action-options-are-unclear/m-p/217389#M2858</link>
      <description>&lt;P&gt;I'm trying to get familiar with Splunk's Python SDK via the provided examples. However, I'm struggling to understand the format expected for actions when creating saved searches.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ ./saved_search.py --operation=create --name=api_test_email --search="unique" --actions=email --action.email.to="user@example.org" --action.email.sender="splunkbot"

Usage: saved_search.py --help for options

saved_search.py: error: no such option: --action.email.to
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The help states: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;"action...": {&lt;BR /&gt;
        'flags': ["--action.&lt;ACTION_TYPE&gt;.&lt;CUSTOM_KEY&gt;"],&lt;BR /&gt;
        'help': "&lt;OPTIONAL for="" create=""&gt; A key/value pair that is specific to the action_type. For example, if actions contains email, then the following keys would be necessary: action.email.to=&lt;A href="mailto:foo@splunk.com" target="_blank"&gt;foo@splunk.com&lt;/A&gt;  and action.email.sender=splunkbot. For scripts: action.script.filename=doodle.py (note: script is run from $SPLUNK_HOME/bin/scripts/)"&lt;/OPTIONAL&gt;&lt;/CUSTOM_KEY&gt;&lt;/ACTION_TYPE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:48:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-saved-search-py-action-options-are-unclear/m-p/217389#M2858</guid>
      <dc:creator>vwilson</dc:creator>
      <dc:date>2020-09-29T07:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDK saved_search.py action options are unclear</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-saved-search-py-action-options-are-unclear/m-p/217390#M2859</link>
      <description>&lt;P&gt;Did you copy and paste the command from a word document into linux command line or something?&lt;/P&gt;

&lt;P&gt;The command looks good.  I suggest you type the command manually and see if it resolves the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 02:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-saved-search-py-action-options-are-unclear/m-p/217390#M2859</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-12-29T02:30:09Z</dc:date>
    </item>
  </channel>
</rss>

