<?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: upload data directly from a http stream of feeds in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96276#M20068</link>
    <description>&lt;P&gt;You could create an input script using python or perl that requests the feed. The process might be like this:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;perl script would request the url and compare a certain field (date or unique id?) to a stored value called "last_date_checked" or "last_id" which you'd need your script to record somewhere after each run. I use perl module "Config::Simple" which allows me to store a value for this purpose. This value is used to track the returned events so you can determine if the incoming events are new or not. If they're new, print them to screen.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;the script simply prints events to the screen&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;in splunk, add a scripted input and run it at an interval suitable to your needs&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Data/Setupcustominputs" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Data/Setupcustominputs&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:58:38 GMT</pubDate>
    <dc:creator>jpass</dc:creator>
    <dc:date>2020-09-28T14:58:38Z</dc:date>
    <item>
      <title>upload data directly from a http stream of feeds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96273#M20065</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I would like to know if there is an option to upload data directly from a http stream of feeds.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;The "http_slash_slash_url_address" returns a something like this:&lt;/P&gt;

&lt;P&gt;{"_origin":"banktrojan","env":{"remote_addr":"212.5.158.188"},"trojanfamily":"Rimecud","data":["\b\f\u00c2\u00832C@y\u001b\u00c2\u00b0@"],"hostn":"lab14","_provider":"lab","trojanproto":"udp","_ts":1381584962,"_geo_env_remote_addr":{"ip":"212.5.158.188","path":"env_remote_addr","country_code":"BG","country_name":"Bulgaria","latitude":43,"longitude":25,"asn":8866,"asn_name":"Bulgarian Telecommunication Company Plc."}}&lt;BR /&gt;
{"_origin":"banktrojan","env":{"remote_addr":"31.174.17.139"},"trojanfamily":"Rimecud","data":["&amp;#131;2#&amp;amp;´\/np"],"hostn":"lab14","_provider":"lab","trojanproto":"udp","_ts":1381584962,"_geo_env_remote_addr":{"ip":"31.174.17.139","path":"env_remote_addr","country_code":"PL","country_name":"Poland","latitude":52,"longitude":20,"asn":39603,"asn_name":"P4 Sp. z o.o."}}&lt;BR /&gt;
{"_origin":"banktrojan","env":{"remote_addr":"83.150.82.170"},"trojanfamily":"Rimecud","data":["&amp;#128;K"],"hostn":"lab14","_provider":"lab","trojanproto":"udp","_ts":1381584962,"_geo_env_remote_addr":{"ip":"83.150.82.170","path":"env_remote_addr","country_code":"FI","country_name":"Finland","region":"Southern Finland","city":"Helsinki","latitude":60.1756,"longitude":24.9342,"asn":13276,"asn_name":"Nebula Internet international operations AS"}}&lt;BR /&gt;
{"_origin":"banktrojan","seen":1381584963,"env":{"remote_addr":"182.178.206.99","path_info":"\/ldr.php","request_method":"POST","http_user_agent":"Mozilla\/4.0"},"trojanfamily":"Zeus","hostn":"lab14","_provider":"lab","_ts":1381584963,"_geo_env_remote_addr":{"ip":"182.178.206.99","path":"env_remote_addr","country_code":"PK","country_name":"Pakistan","region":"Punjab","city":"Lahore","latitude":31.5496,"longitude":74.3436,"asn":45595,"asn_name":"Pakistan Telecom Company Limited"}}&lt;BR /&gt;
{"_origin":"banktrojan","seen":1381584963,"env":{"remote_addr":"201.29.117.248","path_info":"\/print\/eup.html","request_method":"GET","http_user_agent":"Mozilla\/3.0 (compatible; Indy Library)"},"trojanfamily":"Carufax","hostn":"lab14","_provider":"lab","_ts":1381584963,"_geo_env_remote_addr":{"ip":"201.29.117.248","path":"env_remote_addr","country_code":"BR","country_name":"Brazil","region":"Rio de Janeiro","city":"Rio De Janeiro","latitude":-22.8999,"longitude":-43.2333,"asn":7738,"asn_name":"Telemar Norte Leste S.A."}}&lt;BR /&gt;
{"dtype":"NginxLog","_origin":"banktrojan","env":{"remote_addr":"2.30.182.107"},"trojanfamily":"W32Expiro","data":["POST owyrohikypa.org HTTP\/1.1"],"_provider":"lab","_ts":1381584962,"_geo_env_remote_addr":{"ip":"2.30.182.107","path":"env_remote_addr","country_code":"GB","country_name":"United Kingdom","region":"London, City of","city":"London","latitude":51.5142,"longitude":-0.093,"asn":12576,"asn_name":"Orange Personal Communications Services"}}&lt;/P&gt;

&lt;P&gt;Is it possible to upload it directly to splunk storm?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96273#M20065</guid>
      <dc:creator>okcerto</dc:creator>
      <dc:date>2020-09-28T14:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: upload data directly from a http stream of feeds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96274#M20066</link>
      <description>&lt;P&gt;Any news about my question?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2013 16:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96274#M20066</guid>
      <dc:creator>okcerto</dc:creator>
      <dc:date>2013-10-14T16:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: upload data directly from a http stream of feeds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96275#M20067</link>
      <description>&lt;P&gt;Is there anybody out there?!?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2013 14:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96275#M20067</guid>
      <dc:creator>okcerto</dc:creator>
      <dc:date>2013-10-15T14:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: upload data directly from a http stream of feeds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96276#M20068</link>
      <description>&lt;P&gt;You could create an input script using python or perl that requests the feed. The process might be like this:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;perl script would request the url and compare a certain field (date or unique id?) to a stored value called "last_date_checked" or "last_id" which you'd need your script to record somewhere after each run. I use perl module "Config::Simple" which allows me to store a value for this purpose. This value is used to track the returned events so you can determine if the incoming events are new or not. If they're new, print them to screen.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;the script simply prints events to the screen&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;in splunk, add a scripted input and run it at an interval suitable to your needs&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Data/Setupcustominputs" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Data/Setupcustominputs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96276#M20068</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2020-09-28T14:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: upload data directly from a http stream of feeds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96277#M20069</link>
      <description>&lt;P&gt;Oh sorry I did not read your request fully. I see you're using Splunk Storm in which case I can't help you.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2013 15:14:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96277#M20069</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2013-10-15T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: upload data directly from a http stream of feeds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96278#M20070</link>
      <description>&lt;P&gt;Is there an API instead to upload files to an index?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 22:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/upload-data-directly-from-a-http-stream-of-feeds/m-p/96278#M20070</guid>
      <dc:creator>bizmate</dc:creator>
      <dc:date>2016-03-02T22:18:42Z</dc:date>
    </item>
  </channel>
</rss>

