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!

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...