<?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 Scripting to pull in logs from a URL in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-to-pull-in-logs-from-a-URL/m-p/55160#M10740</link>
    <description>&lt;P&gt;I am trying to create a script that will index retrieve Apache server logs but have been unable to figure out how to do it.  I am not able to place a forwarder on the machine, but I do have HTTP access to the log directory.  I have tried creating a script to pull down the log files using WGET (DOS, Windows), and I get it to pull down the files, but I can not figure out how to get Splunk to index them.  The files are compressed, so I access_log_1.gz, access_log_2.gz, etc.  I have places the script in the $Splunk_Home\bin\scripts dir, and it points to a .bat file in $Splunk_Home\bin.  The only line of the bat file is: "wget -r -nv -nH -A "*.gz" &lt;A href="http://10.10.10.10:8001/logs/" target="_blank"&gt;http://10.10.10.10:8001/logs/&lt;/A&gt;"&lt;/P&gt;

&lt;P&gt;Can someone point me to documentation or examples that show how to do this?  Do I have to create an App to do it?  Or can I just use a script only?&lt;BR /&gt;&lt;BR /&gt;
Thank you for any insight you can provide.  &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:47:21 GMT</pubDate>
    <dc:creator>minton55</dc:creator>
    <dc:date>2020-09-28T09:47:21Z</dc:date>
    <item>
      <title>Scripting to pull in logs from a URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-to-pull-in-logs-from-a-URL/m-p/55160#M10740</link>
      <description>&lt;P&gt;I am trying to create a script that will index retrieve Apache server logs but have been unable to figure out how to do it.  I am not able to place a forwarder on the machine, but I do have HTTP access to the log directory.  I have tried creating a script to pull down the log files using WGET (DOS, Windows), and I get it to pull down the files, but I can not figure out how to get Splunk to index them.  The files are compressed, so I access_log_1.gz, access_log_2.gz, etc.  I have places the script in the $Splunk_Home\bin\scripts dir, and it points to a .bat file in $Splunk_Home\bin.  The only line of the bat file is: "wget -r -nv -nH -A "*.gz" &lt;A href="http://10.10.10.10:8001/logs/" target="_blank"&gt;http://10.10.10.10:8001/logs/&lt;/A&gt;"&lt;/P&gt;

&lt;P&gt;Can someone point me to documentation or examples that show how to do this?  Do I have to create an App to do it?  Or can I just use a script only?&lt;BR /&gt;&lt;BR /&gt;
Thank you for any insight you can provide.  &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripting-to-pull-in-logs-from-a-URL/m-p/55160#M10740</guid>
      <dc:creator>minton55</dc:creator>
      <dc:date>2020-09-28T09:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting to pull in logs from a URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-to-pull-in-logs-from-a-URL/m-p/55161#M10741</link>
      <description>&lt;P&gt;Getting the logs to your Splunk server is only 1/2 of the battle.  You have to set up a source to actually index the files.  I'm making the assumption you are sticking these files somewhere else other then the scripts directory.&lt;/P&gt;

&lt;P&gt;You will want to check out &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Monitorfilesanddirectories"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Monitorfilesanddirectories&lt;/A&gt; for more information on setting up a monitor..&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 17:42:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripting-to-pull-in-logs-from-a-URL/m-p/55161#M10741</guid>
      <dc:creator>Brian_Osburn</dc:creator>
      <dc:date>2011-08-09T17:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting to pull in logs from a URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-to-pull-in-logs-from-a-URL/m-p/55162#M10742</link>
      <description>&lt;P&gt;This is what I was missing.  I am not able to do this in one script.  I have to create a script that will pull over the files, and then set up a monitor on the directory to pull in the logs as they are written there.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 20:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripting-to-pull-in-logs-from-a-URL/m-p/55162#M10742</guid>
      <dc:creator>minton55</dc:creator>
      <dc:date>2011-08-09T20:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting to pull in logs from a URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripting-to-pull-in-logs-from-a-URL/m-p/55163#M10743</link>
      <description>&lt;P&gt;We use rsync to copy the apache logs from our web servers to our splunk server...&lt;/P&gt;

&lt;P&gt;You can download a windows version of rsync from &lt;A href="http://rsync.samba.org/download.html"&gt;http://rsync.samba.org/download.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;FYI: cwRsync is a packaging of rsync for MS Windows&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2011 01:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripting-to-pull-in-logs-from-a-URL/m-p/55163#M10743</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2011-08-10T01:11:52Z</dc:date>
    </item>
  </channel>
</rss>

