How i create a script to stop receiving data from UDP port on specific hours for example betwenn 12h until 15h ?
Yes, it's on Linux, but the probleme the firewall is down on Linux
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