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!

Detecting Brute Force Account Takeover Fraud with Splunk

This article is the second in a three-part series exploring advanced fraud detection techniques using Splunk. ...

Buttercup Games: Further Dashboarding Techniques (Part 9)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Buttercup Games: Further Dashboarding Techniques (Part 8)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...