<?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: Archiving and signing at the same time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50379#M9591</link>
    <description>&lt;P&gt;It sounds like you just want to specify the coldToFrozenDir.  If you're signing the data already, that should be preserved during the migration.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/admin/Automatearchiving#Let_Splunk_archive_the_data_for_you"&gt;http://www.splunk.com/base/Documentation/latest/admin/Automatearchiving#Let_Splunk_archive_the_data_for_you&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you do need a script, it doesn't have to be python, but the example coldToFrozenExample.py is a good start.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2011 15:51:12 GMT</pubDate>
    <dc:creator>mw</dc:creator>
    <dc:date>2011-07-29T15:51:12Z</dc:date>
    <item>
      <title>Archiving and signing at the same time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50378#M9590</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;

&lt;P&gt;I'm new on the Splunk planet.&lt;BR /&gt;
I'm trying to find a script that would :&lt;BR /&gt;
 - Send archive data to a nas location when an index is full (as soon as an index is full, without the need of a human intervention)&lt;BR /&gt;
 - Sign this data automatically before it sends it to the distant location (i've generated keys already for IT data signing which works well, i guess i can use the same keys)&lt;/P&gt;

&lt;P&gt;I've had a look at the sample script in the bin directory but i'm not "fluent" in python unfortunately.&lt;/P&gt;

&lt;P&gt;If there's another solution than a script to do that, i'd work for me as well.&lt;/P&gt;

&lt;P&gt;Thanks a lot in advance for your help.&lt;/P&gt;

&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2011 13:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50378#M9590</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2011-07-29T13:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving and signing at the same time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50379#M9591</link>
      <description>&lt;P&gt;It sounds like you just want to specify the coldToFrozenDir.  If you're signing the data already, that should be preserved during the migration.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/admin/Automatearchiving#Let_Splunk_archive_the_data_for_you"&gt;http://www.splunk.com/base/Documentation/latest/admin/Automatearchiving#Let_Splunk_archive_the_data_for_you&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you do need a script, it doesn't have to be python, but the example coldToFrozenExample.py is a good start.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2011 15:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50379#M9591</guid>
      <dc:creator>mw</dc:creator>
      <dc:date>2011-07-29T15:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving and signing at the same time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50380#M9592</link>
      <description>&lt;P&gt;I'm not signing the data at the moment. I just need to sign it at the moment it is sent to my archive path.&lt;/P&gt;

&lt;P&gt;I must have missed something here...&lt;/P&gt;

&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2011 14:39:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50380#M9592</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2011-08-03T14:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving and signing at the same time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50381#M9593</link>
      <description>&lt;P&gt;I could use an archive path, no problem about that.&lt;BR /&gt;
Still, i'm not sure how to make it work together with the signtool.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2011 14:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50381#M9593</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2011-08-03T14:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving and signing at the same time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50382#M9594</link>
      <description>&lt;P&gt;I tried the following :&lt;/P&gt;

&lt;P&gt;I created a brand new index called test, max size is set to 1 Mo.&lt;BR /&gt;
In indexes.conf :&lt;BR /&gt;
[test]&lt;BR /&gt;
coldtoFrozenScript = "/bin/sh" "/opt/splunk/bin/archive_signing.sh"&lt;/P&gt;

&lt;P&gt;In opt/splunk/bin, my archive_signing.sh script is :&lt;/P&gt;

&lt;H1&gt;!/bin/sh&lt;/H1&gt;

&lt;P&gt;echo "script execute" &amp;gt; /root/archive.txt&lt;BR /&gt;
gzip -c $1/*.tsidx &amp;gt; /mnt/tmp/test_archive.gz&lt;BR /&gt;
signtool -s /mnt/tmp/test_archive.gz&lt;/P&gt;

&lt;P&gt;Then i indexed a file that is bigger than 1 Mo.&lt;BR /&gt;
The script is not launched, no archive.txt file is created in the root directory.&lt;BR /&gt;
I can see my logs with the search app. current size of the index is 2 Mo.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;

&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:46:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50382#M9594</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2020-09-28T09:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving and signing at the same time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50383#M9595</link>
      <description>&lt;P&gt;Here's a tested and working solution :&lt;/P&gt;

&lt;P&gt;(#) !/bin/sh&lt;/P&gt;

&lt;P&gt;DATE="$(date +%s)"&lt;BR /&gt;
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/splunk/lib"&lt;BR /&gt;
PATH="$PATH:/opt/splunk/lib"&lt;BR /&gt;
ARCHIVE_PATH="/path/archive_splunk"&lt;BR /&gt;
SPLUNK_HOME="/opt/splunk/"&lt;/P&gt;

&lt;P&gt;gzip -c $1/*.tsidx &amp;gt; $ARCHIVE_PATH/archive_$DATE.gz&lt;BR /&gt;
signtool -s $ARCHIVE_PATH&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Archiving-and-signing-at-the-same-time/m-p/50383#M9595</guid>
      <dc:creator>Mahieu</dc:creator>
      <dc:date>2020-09-28T11:56:45Z</dc:date>
    </item>
  </channel>
</rss>

