<?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: Execute a script on the node itself in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-script-on-the-node-itself/m-p/83223#M17282</link>
    <description>&lt;P&gt;Thanks for the suggestions! I think I am ending up with a solution that stores the alerts on a central location, with cron-jobs running on the nodes themself to pick them up once a minute.. Feels really hackish, unstable and ugly tough.. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2012 07:19:51 GMT</pubDate>
    <dc:creator>lsolberg</dc:creator>
    <dc:date>2012-10-09T07:19:51Z</dc:date>
    <item>
      <title>Execute a script on the node itself</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-script-on-the-node-itself/m-p/83219#M17278</link>
      <description>&lt;P&gt;We have a splitted environment where we are using another tool to take care of typical monitoring like cpu, disk, memory usage and so on. This other tool are also used to generate stats, create incidents, decide if someone has to be woken up at the middle of the night and so on.&lt;/P&gt;

&lt;P&gt;This wonderful tool can also watch logs, so my plan is that Splunk (and maybe some other custom scripts running in cron), logs alerts to this tool to a single logfile. In other words, if "TIMESTAMP Critical A custom message here" is logged to the file /var/log/something.alerts someone will/should be called.&lt;/P&gt;

&lt;P&gt;My problem is that creating an alert using savedsearches and action.script will only run on the searchhead itself.&lt;/P&gt;

&lt;P&gt;Is it possible, to:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Create a splunk alert that populate a log on the universal forwarders themself.&lt;/LI&gt;
&lt;LI&gt;Do parsing (savedsearches logic) based on rules in my inputs.conf on the uf?&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;insert more elegant solution here&lt;/EM&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 08 Oct 2012 12:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Execute-a-script-on-the-node-itself/m-p/83219#M17278</guid>
      <dc:creator>lsolberg</dc:creator>
      <dc:date>2012-10-08T12:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a script on the node itself</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-script-on-the-node-itself/m-p/83220#M17279</link>
      <description>&lt;P&gt;Can you notify the other system with an API or similar?&lt;BR /&gt;
Is the only possible way to create a file on the endpoint?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 13:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Execute-a-script-on-the-node-itself/m-p/83220#M17279</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-10-08T13:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a script on the node itself</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-script-on-the-node-itself/m-p/83221#M17280</link>
      <description>&lt;P&gt;I don't think that you can achieve this with forwarders ( UF, LWF )&lt;BR /&gt;
for 3 reasons :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;they don't have search capabilities (and no scheduled searches either)&lt;/LI&gt;
&lt;LI&gt;they don't have the events indexed locally (and do not parse the events)&lt;/LI&gt;
&lt;LI&gt;UF is not shipped with python.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I see only 3 ways to workaround, but hey are complex to setup, and may be costly..&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;turn all your forwarders in heavy forwarder with local indexing (index and forward), and setup the searches locally (keep a very small index locally if you have disk space issues)  [ more costly in cpu/ network/disk/maintenance]&lt;/LI&gt;
&lt;LI&gt;turn the forwarders to search-heads (forward only , no local indexing), but with ability to search remotely on the indexers, and schedule local alerting with scripts [ more costly in maintenance/network]

&lt;UL&gt;
&lt;LI&gt;keep the searches/scripts on the search-head, and all the seach head to run remote command on the hosts based on the results. [more classic centralized management strategy]&lt;/LI&gt;
&lt;/UL&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 08 Oct 2012 18:34:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Execute-a-script-on-the-node-itself/m-p/83221#M17280</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-10-08T18:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a script on the node itself</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-script-on-the-node-itself/m-p/83222#M17281</link>
      <description>&lt;P&gt;I want to implement this in a very strict environment, so there is no API I can easiely reach.. Having the files on the searchhead will break the other planned scripts populating this log.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 07:12:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Execute-a-script-on-the-node-itself/m-p/83222#M17281</guid>
      <dc:creator>lsolberg</dc:creator>
      <dc:date>2012-10-09T07:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a script on the node itself</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-script-on-the-node-itself/m-p/83223#M17282</link>
      <description>&lt;P&gt;Thanks for the suggestions! I think I am ending up with a solution that stores the alerts on a central location, with cron-jobs running on the nodes themself to pick them up once a minute.. Feels really hackish, unstable and ugly tough.. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 07:19:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Execute-a-script-on-the-node-itself/m-p/83223#M17282</guid>
      <dc:creator>lsolberg</dc:creator>
      <dc:date>2012-10-09T07:19:51Z</dc:date>
    </item>
  </channel>
</rss>

