<?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 Re: Smartevent automatic reaction external script in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Smartevent-automatic-reaction-external-script/m-p/187705#M31426</link>
    <description>&lt;P&gt;The automatic reaction script should receive all the details on stdin.&lt;BR /&gt;Which means your script will simply need to parse that data and take whatever action is desired.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 14:23:01 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2023-07-26T14:23:01Z</dc:date>
    <item>
      <title>Smartevent automatic reaction external script</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Smartevent-automatic-reaction-external-script/m-p/187668#M31415</link>
      <description>&lt;P&gt;For smartevents server we would like to implement an external script for automatic reaction on correlated events and to send this event to syslog.&lt;/P&gt;&lt;P&gt;Now i found this article&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/Management/SmartEvent-External-Script-for-Mail/td-p/78994#" target="_blank"&gt;https://community.checkpoint.com/t5/Management/SmartEvent-External-Script-for-Mail/td-p/78994#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So for my use case i would need something like this, we just want to send the entire event via syslog using Automatic Reaction&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Expert@checkpoint-management:0]# cat $RTDIR/bin/ext_commands/automaticreactionsyslog
#!/bin/bash
INPUT=$(cat);
EVENT="${INPUT//[^a-zA-Z0-9 ().,:;+_-]}";

logger ......;&lt;/LI-CODE&gt;&lt;P&gt;Does someone here perhaps has any guidence on how to achieve this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 12:13:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Smartevent-automatic-reaction-external-script/m-p/187668#M31415</guid>
      <dc:creator>dehaasm</dc:creator>
      <dc:date>2023-07-26T12:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Smartevent automatic reaction external script</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Smartevent-automatic-reaction-external-script/m-p/187705#M31426</link>
      <description>&lt;P&gt;The automatic reaction script should receive all the details on stdin.&lt;BR /&gt;Which means your script will simply need to parse that data and take whatever action is desired.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 14:23:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Smartevent-automatic-reaction-external-script/m-p/187705#M31426</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-07-26T14:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Smartevent automatic reaction external script</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Smartevent-automatic-reaction-external-script/m-p/187710#M31428</link>
      <description>&lt;P&gt;Yes so i guess above script is a good script to start with? I just have to define the syslog action with command logger correct?&lt;/P&gt;&lt;P&gt;I believe these two will collect the event data and then I should include $EVENT in logger command as the data to be send?&lt;/P&gt;&lt;PRE&gt;INPUT=$(cat);
EVENT="${INPUT//[^a-zA-Z0-9 ().,:;+_-]}";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 14:47:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Smartevent-automatic-reaction-external-script/m-p/187710#M31428</guid>
      <dc:creator>dehaasm</dc:creator>
      <dc:date>2023-07-26T14:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Smartevent automatic reaction external script</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Smartevent-automatic-reaction-external-script/m-p/187740#M31440</link>
      <description>&lt;P&gt;That's what it looks like to me.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 16:50:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Smartevent-automatic-reaction-external-script/m-p/187740#M31440</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-07-26T16:50:52Z</dc:date>
    </item>
  </channel>
</rss>

