<?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: Remove user email in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617538#M106621</link>
    <description>&lt;P&gt;There's a space in your email recipient&amp;nbsp;&lt;SPAN&gt;"*&amp;nbsp;&lt;/SPAN&gt;&lt;A href="mailto:mike@gmail.com*%22" target="_blank" rel="nofollow noopener noreferrer"&gt;A@gmail.com*"&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If your search doesn't work, try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server="local" "/servicesNS/-/-/saved/searches" | search NOT search="| noop"
| rex field=id mode=sed "s/https:\/\/127.0.0.1:\d+\///"
| rename eai:acl.app AS app, search AS search_query, description AS desc, id AS url, title AS report_name action.email.to AS email_to action.email.cc AS email_cc action.email.bcc AS email_bcc
| eval time_update_epoch=strptime(updated, "%Y-%m-%dT%H:%M:%S.%2N%Z") 
| eval last_updated=strftime(time_update_epoch, "%Y-%m-%d %H:%M")
| eval cron_job=CASE(disabled=0, cron_schedule, 1=1, "")
| table report_name author email_to email_cc email_bcc last_updated cron_job app url desc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 15:39:25 GMT</pubDate>
    <dc:creator>johnhuang</dc:creator>
    <dc:date>2022-10-18T15:39:25Z</dc:date>
    <item>
      <title>How do I remove user email?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617537#M106620</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;Is there anybody here knows how to remove user email from any Splunk alert and add new user email in his place!&lt;/P&gt;
&lt;P&gt;I used this search to find any Splunk alerts related to the person I want to remove, but I'm getting 0 events.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| `a_searches` 

| fields report_name  email_recipients  cc_email_recipients

| search email_recipients="* A@gmail.com*"&lt;/LI-CODE&gt;
&lt;P&gt;Any help will be appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 17:49:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617537#M106620</guid>
      <dc:creator>majilan1</dc:creator>
      <dc:date>2022-10-18T17:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Remove user email</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617538#M106621</link>
      <description>&lt;P&gt;There's a space in your email recipient&amp;nbsp;&lt;SPAN&gt;"*&amp;nbsp;&lt;/SPAN&gt;&lt;A href="mailto:mike@gmail.com*%22" target="_blank" rel="nofollow noopener noreferrer"&gt;A@gmail.com*"&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If your search doesn't work, try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server="local" "/servicesNS/-/-/saved/searches" | search NOT search="| noop"
| rex field=id mode=sed "s/https:\/\/127.0.0.1:\d+\///"
| rename eai:acl.app AS app, search AS search_query, description AS desc, id AS url, title AS report_name action.email.to AS email_to action.email.cc AS email_cc action.email.bcc AS email_bcc
| eval time_update_epoch=strptime(updated, "%Y-%m-%dT%H:%M:%S.%2N%Z") 
| eval last_updated=strftime(time_update_epoch, "%Y-%m-%d %H:%M")
| eval cron_job=CASE(disabled=0, cron_schedule, 1=1, "")
| table report_name author email_to email_cc email_bcc last_updated cron_job app url desc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617538#M106621</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-18T15:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove user email</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617539#M106622</link>
      <description>&lt;P&gt;What privilege required to perform this action? Is user able to do so or need an admin role?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617539#M106622</guid>
      <dc:creator>majilan1</dc:creator>
      <dc:date>2022-10-18T15:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove user email</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617541#M106623</link>
      <description>&lt;P&gt;To find which alerts are sending email to the user, try this query.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /servicesNS/-/-/saved/searches
| search alert_type!="always"
| where action.email.to="foo"&lt;/LI-CODE&gt;&lt;P&gt;This will give you the names of the alerts to edit.&amp;nbsp; You can edit them manually or use Postman to send REST API calls to make the changes.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617541#M106623</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-18T15:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove user email</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617543#M106624</link>
      <description>&lt;P&gt;You need permissions to the restapi, e.g. the capability: "rest_properties_get"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 16:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617543#M106624</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-18T16:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove user email</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617546#M106625</link>
      <description>&lt;P&gt;I'm getting Error in the 'SearchOperator':Missing required REST url.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /servicesNS/-/-/saved/searches
| search alert_type!="always"
| where action.email.to="A@gmail.com"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Oct 2022 16:14:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617546#M106625</guid>
      <dc:creator>majilan1</dc:creator>
      <dc:date>2022-10-18T16:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Remove user email</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617579#M106627</link>
      <description>&lt;P&gt;I've run that query successfully on two different systems so I know it works.&amp;nbsp; I can't explain the error message.&amp;nbsp; What is your role?&amp;nbsp; What version of Splunk?&lt;/P&gt;&lt;P&gt;One thing to try, even though it shouldn't make a difference, is to put the splunk_server option on the end of the command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /servicesNS/-/-/saved/searches splunk_server=local
| search alert_type!="always"
| where action.email.to="A@gmail.com"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Oct 2022 19:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-user-email/m-p/617579#M106627</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-18T19:39:53Z</dc:date>
    </item>
  </channel>
</rss>

