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
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...