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
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...