<?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 How do I read all searches with a specific action in savedsearches.conf? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251216#M75052</link>
    <description>&lt;P&gt;I have created an alert with user name password fields such that the alert in savedsearches.conf has&lt;BR /&gt;
action.creds_transfer.param.username= aaa&lt;BR /&gt;
action.creds_transfer.param.password = test&lt;/P&gt;

&lt;P&gt;where creds_transfer is an alert action&lt;/P&gt;

&lt;P&gt;I need to read all searches with this action and encrypt the password since it is in clear text.&lt;BR /&gt;
How can i do that?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 07:59:49 GMT</pubDate>
    <dc:creator>GauriSplunk</dc:creator>
    <dc:date>2020-09-29T07:59:49Z</dc:date>
    <item>
      <title>How do I read all searches with a specific action in savedsearches.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251216#M75052</link>
      <description>&lt;P&gt;I have created an alert with user name password fields such that the alert in savedsearches.conf has&lt;BR /&gt;
action.creds_transfer.param.username= aaa&lt;BR /&gt;
action.creds_transfer.param.password = test&lt;/P&gt;

&lt;P&gt;where creds_transfer is an alert action&lt;/P&gt;

&lt;P&gt;I need to read all searches with this action and encrypt the password since it is in clear text.&lt;BR /&gt;
How can i do that?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:59:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251216#M75052</guid>
      <dc:creator>GauriSplunk</dc:creator>
      <dc:date>2020-09-29T07:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read all searches with a specific action in savedsearches.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251217#M75053</link>
      <description>&lt;P&gt;This uses rot13-encoding to obscure:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /servicesNS/-/-/saved/searches | where action.creds_transfer.param.username = "aaa" | rex mode=sed field=action.creds_transfer.param.password "y/anbocpdqerfsgthuivjwkxlymz/naobpcqdresftguhviwjxkylzm/ y/NAOBPCQDRESFTGUHVIWJXKYLZM/ANBOCPDQERFSGTHUIVJWKXLYMZ/" | where action.creds_transfer.param.password = "grfg"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Nov 2015 00:01:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251217#M75053</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-26T00:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read all searches with a specific action in savedsearches.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251218#M75054</link>
      <description>&lt;P&gt;Thanks for your response.&lt;BR /&gt;
couple of questions&lt;BR /&gt;
Does saved/searches command also read searches from local/savedsearches.conf?&lt;BR /&gt;
Where do i add this command? How can i call this from a python script?.&lt;BR /&gt;
Can i run it using curl?&lt;/P&gt;

&lt;P&gt;This is how my alert looks in local/savedsearches.conf. I dont want the password here to be cleartext.&lt;/P&gt;

&lt;P&gt;[test-alert]&lt;BR /&gt;
action.creds_transfer = 1&lt;BR /&gt;
action.creds_transfer.param.password = coolio&lt;BR /&gt;
action.creds_transfer.param.username = test&lt;BR /&gt;
alert.suppress = 0&lt;BR /&gt;
alert.track = 0&lt;BR /&gt;
counttype = number of events&lt;BR /&gt;
cron_schedule = 0 1 * * *&lt;BR /&gt;
description = test Alert&lt;BR /&gt;
dispatch.earliest_time = -1d&lt;BR /&gt;
dispatch.latest_time = now&lt;BR /&gt;
enableSched = 1&lt;BR /&gt;
quantity = 0&lt;BR /&gt;
relation = equal to&lt;BR /&gt;
run_on_startup = 1&lt;BR /&gt;
search = *&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251218#M75054</guid>
      <dc:creator>GauriSplunk</dc:creator>
      <dc:date>2020-09-29T07:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read all searches with a specific action in savedsearches.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251219#M75055</link>
      <description>&lt;P&gt;i ran this on splunk search &lt;BR /&gt;
|rest /servicesNS/admin/infoblox/saved/searches action.creds_transfer.param.username = "test" | rex mode=sed field=action.creds_transfer.param.password "y/anbocpdqerfsgthuivjwkxlymz/naobpcqdresftguhviwjxkylzm/ y/NAOBPCQDRESFTGUHVIWJXKYLZM/ANBOCPDQERFSGTHUIVJWKXLYMZ/" | where action.creds_transfer.param.password = "coolio"&lt;BR /&gt;
it gives me this error:&lt;BR /&gt;
Error in 'rest' command: Invalid argument: 'action.creds_transfer.param.username' &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:59:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251219#M75055</guid>
      <dc:creator>GauriSplunk</dc:creator>
      <dc:date>2020-09-29T07:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read all searches with a specific action in savedsearches.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251220#M75056</link>
      <description>&lt;P&gt;I had a mistake, please try again with updated answer text.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 02:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251220#M75056</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-26T02:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read all searches with a specific action in savedsearches.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251221#M75057</link>
      <description>&lt;P&gt;It doesn't work that way.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 02:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251221#M75057</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-26T02:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read all searches with a specific action in savedsearches.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251222#M75058</link>
      <description>&lt;P&gt;ok. i tried with&lt;BR /&gt;
|rest /servicesNS/-/-/saved/searches | where action.creds_transfer.param.username = "aaa" &lt;BR /&gt;
and it didnt give error but also  i did not get any results.&lt;BR /&gt;
When i do |rest /servicesNS/-/-/saved/searches , I see the results and the value for action.creds_transfer.param.username.&lt;BR /&gt;
but when i put where clause i do not see any results.&lt;BR /&gt;
I   also  tried with other  values  instead of username and for those too i did not get any results.&lt;/P&gt;

&lt;P&gt;is the syntax correct?&lt;BR /&gt;
Thanks&lt;BR /&gt;
-Gauri&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251222#M75058</guid>
      <dc:creator>GauriSplunk</dc:creator>
      <dc:date>2020-09-29T08:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read all searches with a specific action in savedsearches.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251223#M75059</link>
      <description>&lt;P&gt;You have to rot13-encode &lt;CODE&gt;coolio&lt;/CODE&gt; so use &lt;CODE&gt;pbbyvb&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.rot13.com"&gt;http://www.rot13.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I assumed the whole purpose was to obfuscate plain-text passwords in your search and search results, which this approach does.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 18:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251223#M75059</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-26T18:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read all searches with a specific action in savedsearches.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251224#M75060</link>
      <description>&lt;P&gt;Hello Gauri, &lt;/P&gt;

&lt;P&gt;Using the rot13-encoding is reversible especially since you are doing it via rex so anyone that can see what the search is will know what is replaced by what and decode it. I advise you to have a look at :&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/SearchReference/CommonEvalFunctions#Cryptographic_functions"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.0/SearchReference/CommonEvalFunctions#Cryptographic_functions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Using hash functions such as :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval n=md5(field)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.. | eval n=sha512(field)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is safer and not reversible.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 09:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-read-all-searches-with-a-specific-action-in/m-p/251224#M75060</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2016-05-09T09:23:03Z</dc:date>
    </item>
  </channel>
</rss>

