<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Stealthwatch Python Script using cron in Security Analytics</title>
    <link>https://community.cisco.com/t5/security-analytics/stealthwatch-python-script-using-cron/m-p/3805988#M144</link>
    <description>&lt;P&gt;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.&amp;nbsp;I used crontab, but I am not sure it actually runs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the output from crontab -l&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;# m h dom mon dow command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0 16 * * * root /usr/bin/python /root/scripts/TalosBlacklistImport.py &amp;gt; /root/scripts/log/talos.log&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nothing is getting entered into talos.log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A title="TheAlanNix TalosBlacklistImport.py" href="https://github.com/TheAlanNix/cisco-security-tools/tree/master/TalosBlacklistImport" target="_blank" rel="noopener"&gt;https://github.com/TheAlanNix/cisco-security-tools/tree/master/TalosBlacklistImport&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 16:21:10 GMT</pubDate>
    <dc:creator>Bill CARTER</dc:creator>
    <dc:date>2019-02-20T16:21:10Z</dc:date>
    <item>
      <title>Stealthwatch Python Script using cron</title>
      <link>https://community.cisco.com/t5/security-analytics/stealthwatch-python-script-using-cron/m-p/3805988#M144</link>
      <description>&lt;P&gt;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.&amp;nbsp;I used crontab, but I am not sure it actually runs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the output from crontab -l&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;# m h dom mon dow command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0 16 * * * root /usr/bin/python /root/scripts/TalosBlacklistImport.py &amp;gt; /root/scripts/log/talos.log&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nothing is getting entered into talos.log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A title="TheAlanNix TalosBlacklistImport.py" href="https://github.com/TheAlanNix/cisco-security-tools/tree/master/TalosBlacklistImport" target="_blank" rel="noopener"&gt;https://github.com/TheAlanNix/cisco-security-tools/tree/master/TalosBlacklistImport&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 16:21:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/security-analytics/stealthwatch-python-script-using-cron/m-p/3805988#M144</guid>
      <dc:creator>Bill CARTER</dc:creator>
      <dc:date>2019-02-20T16:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Stealthwatch Python Script using cron</title>
      <link>https://community.cisco.com/t5/security-analytics/stealthwatch-python-script-using-cron/m-p/3806009#M145</link>
      <description>Do you installing your cron job on root user? Can you try to remove the 'root' at the beginning and wait to see the result?&lt;BR /&gt;&lt;BR /&gt;You may also want to redirect the stderr to stdout, so it will also show the error message generated from the script.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;0 16 * * * /usr/bin/python /root/scripts/TalosBlacklistImport.py &amp;gt; /root/scripts/log/talos.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2019 16:48:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/security-analytics/stealthwatch-python-script-using-cron/m-p/3806009#M145</guid>
      <dc:creator>ngkin2010</dc:creator>
      <dc:date>2019-02-20T16:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Stealthwatch Python Script using cron</title>
      <link>https://community.cisco.com/t5/security-analytics/stealthwatch-python-script-using-cron/m-p/3806924#M146</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;I removed "root" and changed the log setting. I was able confirm the script successfully ran.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;swm:~/scripts/log# crontab -l&lt;BR /&gt;# m h dom mon dow command&lt;BR /&gt;10 16 * * * /usr/bin/python /root/scripts/TalosBlacklistImport.py &amp;gt; /root/scripts/log/talos.log 2&amp;gt;&amp;amp;1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;swm:~/scripts/log# cat talos.log&lt;BR /&gt;Fetching new IP data from Talos...&lt;BR /&gt;Posting data to the SMC...&lt;BR /&gt;Success.&lt;BR /&gt;swm:~/scripts/log#&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 16:18:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/security-analytics/stealthwatch-python-script-using-cron/m-p/3806924#M146</guid>
      <dc:creator>Bill CARTER</dc:creator>
      <dc:date>2019-02-21T16:18:59Z</dc:date>
    </item>
  </channel>
</rss>

