Splunk Enterprise Security

Stop receiving from UDP port

mjemi
Loves-to-Learn Everything

How i create a script to stop receiving data from UDP port on specific hours for  example betwenn 12h until 15h ?

Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust
I'm expecting that you are using linux. Then probably easiest way is just add root's cron commands to block that UDP port on correct interface and vice versa open it to correct times.
r. Ismo
0 Karma

mjemi
Loves-to-Learn Everything

Yes, it's on Linux, but the probleme the firewall is down on Linux

0 Karma

isoutamo
SplunkTrust
SplunkTrust
It shouldn’t be too hard to bring it up for that port? Other option is use @saravanan90 option. Personally I don’t like to write admin credentials in plain text to servers!
0 Karma

saravanan90
Contributor

You can try cron with the below to add /remove udp input.

./splunk add udp 514 -sourcetype yyyy -index xxxx -auth user:pass

./splunk remove udp 514 -sourcetype yyyy -index xxxx -auth user:pass

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.


Introducing Unified TDIR with the New Enterprise Security 8.2

Read the blog
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...