Module Expr Str FunctionDef arguments args defaults body Expr Str Return IfExp CompareIn Str NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str kwarg body Expr Str Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If NameLoad body If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad NameLoad If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str orelse Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad orelse If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If NameLoad body If SubscriptLoad NameLoad Index Str body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list
N/A N/A 
Splunk Search State Module

.. versionadded:: 2015.5.0

This state is used to ensure presence of splunk searches.

.. code-block:: yaml

    server-warning-message:
      splunk_search.present:
        - name: This is the splunk search name
        - search: index=main sourcetype=
 __virtual__ N/A N/A N/A N/A N/A 
    Only load if the splunk_search module is available in __salt__
     N/A N/A N/A splunk_search.get __salt__ splunk_search False N/A present N/A N/A name profile N/A splunk kwargs N/A N/A 
    Ensure a search is present

    .. code-block:: yaml

        API Error Search:
          splunk_search.present:
            search: index=main sourcetype=blah
            template: alert_5min

    The following parameters are required:

    name
        This is the name of the search in splunk
     N/A ret N/A name changes result comment name N/A None N/A target N/A N/A __salt__ N/A splunk_search.get name profile profile N/A target N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A comment N/A N/A Would update {0} format name N/A ret N/A result N/A N/A __salt__ N/A splunk_search.update name profile profile kwargs N/A N/A result N/A N/A N/A ret N/A result True N/A N/A ret N/A comment No changes N/A N/A N/A newvalues diffs result N/A old_content N/A dict N/A target content N/A old_changes N/A N/A x newvalues N/A N/A N/A old_changes N/A x N/A N/A old_content get x None N/A N/A ret N/A result True N/A N/A N/A ret N/A changes N/A diff diffs N/A N/A N/A ret N/A changes N/A old old_changes N/A N/A N/A ret N/A changes N/A new newvalues N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A comment N/A N/A Would create {0} format name N/A ret N/A result N/A N/A __salt__ N/A splunk_search.create name profile profile kwargs N/A result N/A N/A N/A ret N/A result True N/A N/A N/A ret N/A changes N/A old False N/A N/A N/A ret N/A changes N/A new kwargs N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A Failed to create {0} format name N/A ret N/A absent N/A N/A name profile N/A splunk N/A N/A 
    Ensure a search is absent

    .. code-block:: yaml

        API Error Search:
          splunk_search.absent

    The following parameters are required:

    name
        This is the name of the search in splunk
     N/A ret N/A name changes result comment name N/A True N/A N/A {0} is absent. format name N/A target N/A N/A __salt__ N/A splunk_search.get name profile profile N/A target N/A N/A N/A __opts__ N/A test N/A N/A ret N/A N/A N/A ret N/A name name N/A N/A ret N/A comment N/A N/A Would delete {0} format name N/A N/A ret N/A result None N/A ret N/A result N/A N/A __salt__ N/A splunk_search.delete name profile profile N/A result N/A N/A N/A ret N/A comment N/A N/A {0} was deleted format name N/A N/A N/A ret N/A comment N/A N/A Failed to delete {0} format name N/A N/A ret N/A result False N/A ret N/A