<?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: Unable to send test email from Splunk in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/762266#M16369</link>
    <description>&lt;P&gt;The following procedure worked for me fine. I created a mini guide:&lt;/P&gt;&lt;P&gt;1. Setting Up Google SMTP in Splunk To successfully send emails from Splunk via Gmail, you must use an App Password rather than your regular account password.&lt;/P&gt;&lt;P&gt;Generate App Password: Go to your Google Account settings, enable 2-Step Verification, and generate a 16-character App Password.&lt;/P&gt;&lt;P&gt;Configure Splunk Email Settings: Navigate to Settings &amp;gt; System settings &amp;gt; Email alert settings. Mail host: smtp.gmail.com:465. Email security: SSL. Username: Your full Gmail address. Password: Paste the 16-character (without spaces) App Password here. Click Save.&lt;/P&gt;&lt;P&gt;2. How to Trigger/Test the Alert You can verify your configuration by running a manual test command in the search bar. This confirms your SMTP settings are correct without needing to wait for a real event.&lt;/P&gt;&lt;P&gt;Run Test Command: Use the following command in the Splunk Search bar: index=_internal | head 1 | sendemail to="your_email@example.com" subject="Test Alert" message="Splunk SMTP is working" sendresults=true format=table sendcsv=false.&lt;/P&gt;&lt;P&gt;Expected Outcome: If the configuration is correct, you will receive a test email, and the search will display "The search completed successfully". 3. Setting Up an Automated Alert&lt;/P&gt;&lt;P&gt;Once testing is successful, configure an automated trigger for new events: Create Alert: Perform a search for your specific event (e.g., index="your_index"). Save as Alert: Click Save As &amp;gt; Alert. Schedule: Set the Alert type to Scheduled. Frequency: To check every minute, select Run on Cron Schedule and enter */1 * * * *. Time Range: Set the time range to "Last 1 minute" to ensure the alert only triggers for new events within that specific window. Trigger Condition: Set Number of results to is greater than 0. Add Action: Select Add Actions &amp;gt; Send email and enter the recipient address. Important Note: These steps apply to the Enterprise/Trial version. Please be aware that the Free version of Splunk has limitations that prevent these email alert actions from working.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2026 14:09:24 GMT</pubDate>
    <dc:creator>dimmitrisd</dc:creator>
    <dc:date>2026-07-15T14:09:24Z</dc:date>
    <item>
      <title>Unable to send test email from Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/639276#M14991</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am trying configuring gmail smtp but when sending test email using below command getting below error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help will be appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=_internal | head 1 | sendemail to="XXXXXXXX@gmail.com" format="html" server=smtp.gmail.com:587 use_tls=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;command="sendemail", (530, b'5.7.0 Authentication Required. Learn more at\n5.7.0 &lt;A href="https://support.google.com/mail/?p=WantAuthError" target="_blank" rel="noopener"&gt;https://support.google.com/mail/?p=WantAuthError&lt;/A&gt; w22-20020a1709027b9600b0019a593e45f1sm196622pll.261 - gsmtp', 'splunk@ip-172-31-36-251.ap-south-1.compute.internal') while sending mail to: @XXXXXXX@gmail.com&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 13:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/639276#M14991</guid>
      <dc:creator>mukeshprasad4u</dc:creator>
      <dc:date>2023-04-08T13:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send test email from Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/667242#M15466</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;by any chance, did you find a solution for this? I got the same issue right now.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 22:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/667242#M15466</guid>
      <dc:creator>marioespbaires</dc:creator>
      <dc:date>2023-11-02T22:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send test email from Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/667267#M15469</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Currently gmail don't allow use smtp server as earlier. Instead it wants to use more secure authentication. For that reason the old way is not working anymore with Splunk. Fortunately they have implemented 2-factor authentication and additional app password feature which you could use.&lt;/P&gt;&lt;P&gt;Here is steps to do it&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://support.google.com/accounts/answer/185833?sjid=13755993998155727325-EU#:~:text=to%2520your%2520data.-,sign%2520in%2520with%2520app%2520passwords,-Tip%253A%2520App%2520Passwords" target="_blank" rel="noopener"&gt;https://support.google.com/accounts/answer/185833?sjid=13755993998155727325-EU#:~:text=to%2520your%2520data.-,sign%2520in%2520with%2520app%2520passwords,-Tip%253A%2520App%2520Passwords&lt;BR /&gt;&lt;/A&gt;&lt;OL&gt;&lt;LI&gt;Check above instructions and ensure that you have 2-step verification on (probably this is as Google has enabled it for all)&lt;/LI&gt;&lt;LI&gt;Create a new app password for your Splunk server&lt;/LI&gt;&lt;LI&gt;Login to your local splunk instance&lt;OL&gt;&lt;OL&gt;&lt;LI&gt;Settings -&amp;gt; Server settings&lt;/LI&gt;&lt;LI&gt;Email settings&lt;OL&gt;&lt;LI&gt;Mail host: smtp.gmail.com:587&lt;/LI&gt;&lt;LI&gt;Email security: Enable TLS&lt;/LI&gt;&lt;LI&gt;Username: Your Gmail account where you have enabled 2 Step verification&lt;/LI&gt;&lt;LI&gt;Password: App password for above Gmail account&lt;/LI&gt;&lt;LI&gt;Allowed Domains: &amp;lt;add what is needed&amp;gt;&lt;/LI&gt;&lt;LI&gt;Save&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Go to search GUI:&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal
| head 1
| sendemail to="&amp;lt;your test email recipient&amp;gt;" subject=test sendresults=true format=table sendcsv=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 09:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/667267#M15469</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-11-03T09:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to send test email from Splunk</title>
      <link>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/762266#M16369</link>
      <description>&lt;P&gt;The following procedure worked for me fine. I created a mini guide:&lt;/P&gt;&lt;P&gt;1. Setting Up Google SMTP in Splunk To successfully send emails from Splunk via Gmail, you must use an App Password rather than your regular account password.&lt;/P&gt;&lt;P&gt;Generate App Password: Go to your Google Account settings, enable 2-Step Verification, and generate a 16-character App Password.&lt;/P&gt;&lt;P&gt;Configure Splunk Email Settings: Navigate to Settings &amp;gt; System settings &amp;gt; Email alert settings. Mail host: smtp.gmail.com:465. Email security: SSL. Username: Your full Gmail address. Password: Paste the 16-character (without spaces) App Password here. Click Save.&lt;/P&gt;&lt;P&gt;2. How to Trigger/Test the Alert You can verify your configuration by running a manual test command in the search bar. This confirms your SMTP settings are correct without needing to wait for a real event.&lt;/P&gt;&lt;P&gt;Run Test Command: Use the following command in the Splunk Search bar: index=_internal | head 1 | sendemail to="your_email@example.com" subject="Test Alert" message="Splunk SMTP is working" sendresults=true format=table sendcsv=false.&lt;/P&gt;&lt;P&gt;Expected Outcome: If the configuration is correct, you will receive a test email, and the search will display "The search completed successfully". 3. Setting Up an Automated Alert&lt;/P&gt;&lt;P&gt;Once testing is successful, configure an automated trigger for new events: Create Alert: Perform a search for your specific event (e.g., index="your_index"). Save as Alert: Click Save As &amp;gt; Alert. Schedule: Set the Alert type to Scheduled. Frequency: To check every minute, select Run on Cron Schedule and enter */1 * * * *. Time Range: Set the time range to "Last 1 minute" to ensure the alert only triggers for new events within that specific window. Trigger Condition: Set Number of results to is greater than 0. Add Action: Select Add Actions &amp;gt; Send email and enter the recipient address. Important Note: These steps apply to the Enterprise/Trial version. Please be aware that the Free version of Splunk has limitations that prevent these email alert actions from working.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2026 14:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Unable-to-send-test-email-from-Splunk/m-p/762266#M16369</guid>
      <dc:creator>dimmitrisd</dc:creator>
      <dc:date>2026-07-15T14:09:24Z</dc:date>
    </item>
  </channel>
</rss>

