<?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: How pull a file from host that triggered alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460024#M8151</link>
    <description>&lt;P&gt;Hi @batuhankutluca,&lt;BR /&gt;
for my knowledge (I'm not an expert of scripting!) the only way is to execute a script that access the remote server and copy the file: I don't like this solution because it's a break in security!&lt;/P&gt;

&lt;P&gt;A workaround: if the file to pull is a text file, you could index it in Splunk and put in a separate index, eventually with a low retention (to not have too storage), so you can have it when an alert is fired.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2020 08:17:27 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-02-04T08:17:27Z</dc:date>
    <item>
      <title>How pull a file from host that triggered alert</title>
      <link>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460020#M8147</link>
      <description>&lt;P&gt;I've been searching for a way to pull a file from Splunk universal forwarder installed host, but couldn't find anything useful. &lt;/P&gt;

&lt;P&gt;What I need is, after my specific alert is triggered, I need to pull a file from that host that triggered the alarm. &lt;/P&gt;

&lt;P&gt;I created 1-2 custom alert actions so I'm familiar with that stuff simply. &lt;BR /&gt;
Maybe running some python codes on the host can help me to upload that file to my server but I'm not sure with that. &lt;/P&gt;

&lt;P&gt;Is there any other stuff that helps me with these problems? &lt;BR /&gt;
Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2020 07:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460020#M8147</guid>
      <dc:creator>batuhankutluca</dc:creator>
      <dc:date>2020-02-02T07:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: How pull a file from host that triggered alert</title>
      <link>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460021#M8148</link>
      <description>&lt;P&gt;Hi @batuhankutluca,&lt;BR /&gt;
did you already tried to execute a script that pulls a file from when alert is fired?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2020 09:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460021#M8148</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-02T09:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: How pull a file from host that triggered alert</title>
      <link>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460022#M8149</link>
      <description>&lt;P&gt;Hi @gcusello&lt;/P&gt;

&lt;P&gt;Actually I didn't try to do that because I don't know how to do it. Maybe setting up a ftp listener on my deployment server and running a python code that connects my server via ftp works. Just a thought tho, I don't even know if it is reasonable or not.  &lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2020 10:19:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460022#M8149</guid>
      <dc:creator>batuhankutluca</dc:creator>
      <dc:date>2020-02-02T10:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: How pull a file from host that triggered alert</title>
      <link>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460023#M8150</link>
      <description>&lt;P&gt;Still looking for a way.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 02:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460023#M8150</guid>
      <dc:creator>batuhankutluca</dc:creator>
      <dc:date>2020-02-04T02:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How pull a file from host that triggered alert</title>
      <link>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460024#M8151</link>
      <description>&lt;P&gt;Hi @batuhankutluca,&lt;BR /&gt;
for my knowledge (I'm not an expert of scripting!) the only way is to execute a script that access the remote server and copy the file: I don't like this solution because it's a break in security!&lt;/P&gt;

&lt;P&gt;A workaround: if the file to pull is a text file, you could index it in Splunk and put in a separate index, eventually with a low retention (to not have too storage), so you can have it when an alert is fired.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 08:17:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460024#M8151</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-04T08:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: How pull a file from host that triggered alert</title>
      <link>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460025#M8152</link>
      <description>&lt;P&gt;Hi @gcusello,&lt;BR /&gt;
Thanks for your answer. It may be a txt file but not for the all events. I was looking for a splunk feature to do that but I guess there is not. I mean since we can run scripts on host via forwarder, I thought we can do more like fetching a file instead monitoring it. As you mentioned, it would be a security problem for enterprise &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 13:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-pull-a-file-from-host-that-triggered-alert/m-p/460025#M8152</guid>
      <dc:creator>batuhankutluca</dc:creator>
      <dc:date>2020-02-05T13:02:30Z</dc:date>
    </item>
  </channel>
</rss>

