<?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: Is it possible to run a script to create lookup table files on one search head and replicate it to two other search heads? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217372#M63863</link>
    <description>&lt;P&gt;3 search heads yes.  I would expect file locking issues and/or replication causing unexpected results if two or more search heads run the script at the same time or staggered (for example, one search head is finishing the script when another starts it, and incomplete results are copied over on top of others.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2016 16:36:30 GMT</pubDate>
    <dc:creator>umplebyj</dc:creator>
    <dc:date>2016-11-11T16:36:30Z</dc:date>
    <item>
      <title>Is it possible to run a script to create lookup table files on one search head and replicate it to two other search heads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217367#M63858</link>
      <description>&lt;P&gt;So, I was requested to basically grab data from some public IP spam/malicious host/etc lists.&lt;/P&gt;

&lt;P&gt;I've generated a shell script to download files, run sed and format the outputs into 3 separate CSV files and then delete the original downloads.&lt;/P&gt;

&lt;P&gt;Obviously since they are lookup files these need to run on the search heads, however, I would think replication of lookups/files etc between the search heads would cause some problems.&lt;/P&gt;

&lt;P&gt;What I'd like to do is only run this on one search head to create lookup table files, and have them replicated to the other two.  Is that possible, or do I have to somehow disable this app from being replicated and have all 3 search heads run the script?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 23:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217367#M63858</guid>
      <dc:creator>umplebyj</dc:creator>
      <dc:date>2016-11-10T23:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run a script to create lookup table files on one search head and replicate it to two other search heads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217368#M63859</link>
      <description>&lt;P&gt;The three SH, are they on Cluster/pool? What problem do you think the replication will cause?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 01:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217368#M63859</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-11-11T01:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run a script to create lookup table files on one search head and replicate it to two other search heads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217369#M63860</link>
      <description>&lt;P&gt;A very interesting problem.  I have a similar need and haven't decided on a solution.  Just thinking a bit about it leads me to maybe try something like this:&lt;/P&gt;

&lt;P&gt;SH1 - build the lookup (this is the "master" lookup)&lt;BR /&gt;
Index the lookup into a 'transportation' index (mine is called test):&lt;BR /&gt;
| inputlookup test | collect index=test&lt;/P&gt;

&lt;P&gt;SH2 - populate the lookup:&lt;BR /&gt;
index=test | outputlookup test&lt;/P&gt;

&lt;P&gt;Anyway, I'll poke around a bit with this and repost if I come up with my own solution.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 01:31:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217369#M63860</guid>
      <dc:creator>niemesrw</dc:creator>
      <dc:date>2016-11-11T01:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run a script to create lookup table files on one search head and replicate it to two other search heads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217370#M63861</link>
      <description>&lt;P&gt;Another idea you could do is&lt;BR /&gt;
- write your script/app in your Forwarders&lt;BR /&gt;
- Index them to your indexers with field or time with today's value&lt;BR /&gt;
- Run a search on indexed field and output it as csv. This way you don't have worry about deletion and also can keep track of your lookup file. You can configure your index to have retention of 30days etc..&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 06:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217370#M63861</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2016-11-11T06:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run a script to create lookup table files on one search head and replicate it to two other search heads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217371#M63862</link>
      <description>&lt;P&gt;yeah my original plan was to make this a scripted app on the heavy forwarder, but the problem I ran into it, is that the data stays regardless if the open source block lists update to remove an IP.&lt;/P&gt;

&lt;P&gt;in other words, even if you set the retention to 30 days, if a particular IP is set for blocking say CNN gets infected and one of their public web IPs is now a known attacker IP.  My Incident response team is going to be doing lookups on our logs against the known threat list.  If this IP leaves the black list within 24 hours as the cnn was able to fix the issue, then this IP will be stuck in the black list index for 30 days.&lt;/P&gt;

&lt;P&gt;I'd rather have a more real time list, grabbing this data once every hour or two.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 15:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217371#M63862</guid>
      <dc:creator>umplebyj</dc:creator>
      <dc:date>2016-11-11T15:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run a script to create lookup table files on one search head and replicate it to two other search heads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217372#M63863</link>
      <description>&lt;P&gt;3 search heads yes.  I would expect file locking issues and/or replication causing unexpected results if two or more search heads run the script at the same time or staggered (for example, one search head is finishing the script when another starts it, and incomplete results are copied over on top of others.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 16:36:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217372#M63863</guid>
      <dc:creator>umplebyj</dc:creator>
      <dc:date>2016-11-11T16:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run a script to create lookup table files on one search head and replicate it to two other search heads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217373#M63864</link>
      <description>&lt;P&gt;How are you running the script? If you're search heads are in cluster (SHC), setup the script to run as alert action of a scheduled search (any dummy search which will return result), so that it'll run only on one SH for a schedule. Let SHC replicate the lookup for you to other SH. &lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 16:50:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217373#M63864</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-11-11T16:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run a script to create lookup table files on one search head and replicate it to two other search heads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217374#M63865</link>
      <description>&lt;P&gt;Solved the issue here:&lt;/P&gt;

&lt;P&gt;create the new lookup file, and drop it into /opt/splunk/var/run/splunk/lookup_tmp/&lt;BR /&gt;
on linux chown the file&lt;/P&gt;

&lt;P&gt;Then run the web api to delete the current instance, upload the new one, and move it to all permissions&lt;BR /&gt;
curl -k -u admin:changeme --request DELETE &lt;A href="https://server:8089/servicesNS/admin/app/data/lookup-table-files/file.csv"&gt;https://server:8089/servicesNS/admin/app/data/lookup-table-files/file.csv&lt;/A&gt;&lt;BR /&gt;
curl -k -u admin:changeme  &lt;A href="https://server:8089/servicesNS/admin/app/data/lookup-table-files"&gt;https://server:8089/servicesNS/admin/app/data/lookup-table-files&lt;/A&gt; -d eai:data=/opt/splunk/var/run/splunk/lookup_tmp/file.csv -d name=file.csv&lt;BR /&gt;
curl -k -u admin:changeme  &lt;A href="https://server:8089/servicesNS/admin/app/data/lookup-table-files/acl"&gt;https://server:8089/servicesNS/admin/app/data/lookup-table-files/acl&lt;/A&gt; -d owner=admin -d sharing=global -d perms.read=*&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 23:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-a-script-to-create-lookup-table-files-on/m-p/217374#M63865</guid>
      <dc:creator>umplebyj</dc:creator>
      <dc:date>2017-01-10T23:16:39Z</dc:date>
    </item>
  </channel>
</rss>

