<?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 Auto generate a lookup file from SVN or GIT in Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Auto-generate-a-lookup-file-from-SVN-or-GIT-in-Splunk/m-p/54242#M13246</link>
    <description>&lt;P&gt;Is it possible to automatically generate a lookup file from SVN or GIT inside Splunk or should it be done by a cron script from the OS?&lt;BR /&gt;
I'm thankful and open for all creative suggestions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2013 08:02:22 GMT</pubDate>
    <dc:creator>mikaelsandquist</dc:creator>
    <dc:date>2013-06-04T08:02:22Z</dc:date>
    <item>
      <title>Auto generate a lookup file from SVN or GIT in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Auto-generate-a-lookup-file-from-SVN-or-GIT-in-Splunk/m-p/54242#M13246</link>
      <description>&lt;P&gt;Is it possible to automatically generate a lookup file from SVN or GIT inside Splunk or should it be done by a cron script from the OS?&lt;BR /&gt;
I'm thankful and open for all creative suggestions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2013 08:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Auto-generate-a-lookup-file-from-SVN-or-GIT-in-Splunk/m-p/54242#M13246</guid>
      <dc:creator>mikaelsandquist</dc:creator>
      <dc:date>2013-06-04T08:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Auto generate a lookup file from SVN or GIT in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Auto-generate-a-lookup-file-from-SVN-or-GIT-in-Splunk/m-p/54243#M13247</link>
      <description>&lt;P&gt;My suggestion is to use Bash (*nix/BSD), Powershell (Windows), Python, or a combination to generate the CSV lookup file.  This will give you ultimate control over what goes in the file to make sure that it is formatted in a Splunk-friendly manner.&lt;/P&gt;

&lt;P&gt;What I have done in the past is to run a Python script on cron.  Then have the script do the following:&lt;BR /&gt;
 - Make a backup of the existing lookup&lt;BR /&gt;
 - Generate a new lookup file using SVN/Git commands; format the output&lt;BR /&gt;
 - Delete the old file&lt;BR /&gt;
 - Restart Splunk&lt;/P&gt;

&lt;P&gt;Another thing you may wish to consider is to create a transaction log to show if the new lookup file was successfully created or not; and if not where the errors occurred.  If that is something you are interested in, I will be more than happy to post the code in the answer...the log is Splunk-friendly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2013 13:53:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Auto-generate-a-lookup-file-from-SVN-or-GIT-in-Splunk/m-p/54243#M13247</guid>
      <dc:creator>barakreeves</dc:creator>
      <dc:date>2013-06-04T13:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Auto generate a lookup file from SVN or GIT in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Auto-generate-a-lookup-file-from-SVN-or-GIT-in-Splunk/m-p/54244#M13248</link>
      <description>&lt;P&gt;Thanks for your answer! I think I'll go for a cron scheduled bash script to generate the CSV lookup file once a day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2013 11:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Auto-generate-a-lookup-file-from-SVN-or-GIT-in-Splunk/m-p/54244#M13248</guid>
      <dc:creator>mikaelsandquist</dc:creator>
      <dc:date>2013-06-19T11:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Auto generate a lookup file from SVN or GIT in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Auto-generate-a-lookup-file-from-SVN-or-GIT-in-Splunk/m-p/54245#M13249</link>
      <description>&lt;P&gt;Just a small remark: you don't need to restart splunk to read a new lookup csv. You can reload it by accessing http[s]://yourSplunkServer/debug/refresh if you have the sufficient rights to do so.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2013 13:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Auto-generate-a-lookup-file-from-SVN-or-GIT-in-Splunk/m-p/54245#M13249</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-06-19T13:20:57Z</dc:date>
    </item>
  </channel>
</rss>

