<?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 coldtofrozen script on linux doesnt work in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/coldtofrozen-script-on-linux-doesnt-work/m-p/95120#M22729</link>
    <description>&lt;P&gt;My coldtofrozenscript on linux is totaly ignored, I tweaked the indexes.conf (a few warmbuckets and small total index) and the data is nicely deleted from cold....&lt;/P&gt;

&lt;P&gt;How can I see why the coldtofrozen script isnt working?&lt;/P&gt;

&lt;P&gt;Configed exactly like the manual,,,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;index&amp;gt;]
coldToFrozenScript = /opt/splunk/bin/compressedExport.sh
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in &lt;/P&gt;

&lt;P&gt;compressedExport.sh I only set the path to the archivelocation&lt;/P&gt;</description>
    <pubDate>Sat, 27 Nov 2010 14:18:08 GMT</pubDate>
    <dc:creator>Starlette</dc:creator>
    <dc:date>2010-11-27T14:18:08Z</dc:date>
    <item>
      <title>coldtofrozen script on linux doesnt work</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/coldtofrozen-script-on-linux-doesnt-work/m-p/95120#M22729</link>
      <description>&lt;P&gt;My coldtofrozenscript on linux is totaly ignored, I tweaked the indexes.conf (a few warmbuckets and small total index) and the data is nicely deleted from cold....&lt;/P&gt;

&lt;P&gt;How can I see why the coldtofrozen script isnt working?&lt;/P&gt;

&lt;P&gt;Configed exactly like the manual,,,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;index&amp;gt;]
coldToFrozenScript = /opt/splunk/bin/compressedExport.sh
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in &lt;/P&gt;

&lt;P&gt;compressedExport.sh I only set the path to the archivelocation&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2010 14:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/coldtofrozen-script-on-linux-doesnt-work/m-p/95120#M22729</guid>
      <dc:creator>Starlette</dc:creator>
      <dc:date>2010-11-27T14:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: coldtofrozen script on linux doesnt work</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/coldtofrozen-script-on-linux-doesnt-work/m-p/95121#M22730</link>
      <description>&lt;P&gt;What are the contents of compressedExport.sh? Can you verify that it is executable? Also, try running that script by hand under the same user as splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;touch /tmp/foo
/opt/splunk/bin/compressedExport.sh /tmp/foo
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Nov 2010 09:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/coldtofrozen-script-on-linux-doesnt-work/m-p/95121#M22730</guid>
      <dc:creator>tedder</dc:creator>
      <dc:date>2010-11-28T09:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: coldtofrozen script on linux doesnt work</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/coldtofrozen-script-on-linux-doesnt-work/m-p/95122#M22731</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;#!/bin/sh
# Copyright (C) 2005-2010 Splunk Inc.  All Rights Reserved. Version 4.0
# Edit this script to reflect your archive directory and save as
# compressedExport.sh

( cd "$1" &amp;amp;&amp;amp; gzip *.tsidx )

cp -r "$1" /opt/fl_virtual_san 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you mean a test dir instead of a file right?
I'have made dir  /opt/foo for testing and ran:&lt;/P&gt;

&lt;P&gt;/opt$ /opt/splunk/bin/compressedExport.sh /opt/foo&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/sh
# Copyright (C) 2005-2010 Splunk Inc.  All Rights Reserved. Version 4.0
# Edit this script to reflect your archive directory and save as
# compressedExport.sh

( cd "$1" &amp;amp;&amp;amp; gzip *.tsidx )

cp -r "$1" /opt/fl_virtual_san 

*** /opt/foo: directory ***
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;No files anywhere?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2010 14:51:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/coldtofrozen-script-on-linux-doesnt-work/m-p/95122#M22731</guid>
      <dc:creator>Starlette</dc:creator>
      <dc:date>2010-11-29T14:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: coldtofrozen script on linux doesnt work</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/coldtofrozen-script-on-linux-doesnt-work/m-p/95123#M22732</link>
      <description>&lt;P&gt;I think your problem is that you cd into the directory, then you try to copy the directory from the wrong location. Change it to this:&lt;BR /&gt;
gzip $1/*tsidx&lt;BR /&gt;
cp -r $1 /opt/fl_virtual_san/&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/coldtofrozen-script-on-linux-doesnt-work/m-p/95123#M22732</guid>
      <dc:creator>tedder</dc:creator>
      <dc:date>2020-09-28T09:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: coldtofrozen script on linux doesnt work</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/coldtofrozen-script-on-linux-doesnt-work/m-p/95124#M22733</link>
      <description>&lt;P&gt;Shouldn't be, since the &lt;CODE&gt;( ... )&lt;/CODE&gt; indicates the &lt;CODE&gt;cd&lt;/CODE&gt; happens in a subshell, so the next command doesn't go to the directory. Furthermore, the path should be absolute for the &lt;CODE&gt;cp&lt;/CODE&gt; command, so it shouldn't matter. The error indicates that it &lt;CODE&gt;cp&lt;/CODE&gt; won't copy because &lt;CODE&gt;/opt/foo&lt;/CODE&gt; is a directory. &lt;CODE&gt;-r&lt;/CODE&gt; should deal with that. That error message does look strange, and I'm not sure which command is generating it.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2010 04:30:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/coldtofrozen-script-on-linux-doesnt-work/m-p/95124#M22733</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-11-30T04:30:57Z</dc:date>
    </item>
  </channel>
</rss>

