02-20-2019 08:21 AM
Alan Nix has created a great python script to import the Talos Blacklist into Stealthwatch. I have successfully run the script manually. I would like to run the script daily using cron. I used crontab, but I am not sure it actually runs.
Here is the output from crontab -l
# m h dom mon dow command
0 16 * * * root /usr/bin/python /root/scripts/TalosBlacklistImport.py > /root/scripts/log/talos.log
Nothing is getting entered into talos.log.
https://github.com/TheAlanNix/cisco-security-tools/tree/master/TalosBlacklistImport
Solved! Go to Solution.
02-20-2019 08:48 AM
02-20-2019 08:48 AM
02-21-2019 08:18 AM
Thank you!
I removed "root" and changed the log setting. I was able confirm the script successfully ran.
swm:~/scripts/log# crontab -l
# m h dom mon dow command
10 16 * * * /usr/bin/python /root/scripts/TalosBlacklistImport.py > /root/scripts/log/talos.log 2>&1
swm:~/scripts/log# cat talos.log
Fetching new IP data from Talos...
Posting data to the SMC...
Success.
swm:~/scripts/log#
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide