All Apps and Add-ons

Linux DHCP and emails

stefanlasiewski
Contributor

In any case, you will want to change
the "Email address(es)" from
"example@example.com" to your desired
email address or distribution list.

This app is sending close to 100 messages every day. They all go to 'example@example.com' which is bouncing around the email system. By default email on most Linux systems will have the 'From:' address of 'splunk@somehost.yourorganization.org', which also goes nowhere (Or perhaps it goes to postmaster@yourorganization.org). This results in hundreds of double-bounced emails which remain in email purgatory.

How would one change this email address? I cannot find that setting anywhere.

Tags (1)
1 Solution

stefanlasiewski
Contributor

Here's how I solved this.

I noticed that the savedsearch dhcpd_alert_new_mac_address_15m was configured to send an email every 15 minutes. By default, it sends email to example@example.org . That is a ton of email (96 incorrect emails per day?). This is viewable under "Splunk> Manager » Searches and reports » dhcpd_alert_new_mac_address_15m", and on the commandline at $SPLUNK_HOME/etc/apps/dhcpd/default/savedsearches.conf has this:

[dhcpd_alert_new_mac_address_15m]                                                   
action.email = 1                                                                    
action.email.sendresults = 1                                                        
action.email.to = example@example.com                                               
counttype = number of events                                                        
cron_schedule = */15 * * * *                                                        
description = Alerts on mac addresses seen in the last 15 minutes that were not in the dhcpd_mac-hostname lookup table                                                   

To disable this, I simply unchecked the box next to "Schedule this search". On the commandline, the following file was added to $SPLUNK_HOME/etc/apps/dhcpd/local/savedsearches.conf, and now the emails have stopped.

[dhcpd_alert_new_mac_address_15m]  
disabled = 1   

View solution in original post

0 Karma

stefanlasiewski
Contributor

Here's how I solved this.

I noticed that the savedsearch dhcpd_alert_new_mac_address_15m was configured to send an email every 15 minutes. By default, it sends email to example@example.org . That is a ton of email (96 incorrect emails per day?). This is viewable under "Splunk> Manager » Searches and reports » dhcpd_alert_new_mac_address_15m", and on the commandline at $SPLUNK_HOME/etc/apps/dhcpd/default/savedsearches.conf has this:

[dhcpd_alert_new_mac_address_15m]                                                   
action.email = 1                                                                    
action.email.sendresults = 1                                                        
action.email.to = example@example.com                                               
counttype = number of events                                                        
cron_schedule = */15 * * * *                                                        
description = Alerts on mac addresses seen in the last 15 minutes that were not in the dhcpd_mac-hostname lookup table                                                   

To disable this, I simply unchecked the box next to "Schedule this search". On the commandline, the following file was added to $SPLUNK_HOME/etc/apps/dhcpd/local/savedsearches.conf, and now the emails have stopped.

[dhcpd_alert_new_mac_address_15m]  
disabled = 1   
0 Karma

araitz
Splunk Employee
Splunk Employee

The only way to do this right now is to edit each saved search manually. I will consider making this easier in a future version.

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...