<?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 inflight file clean up in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/inflight-file-clean-up/m-p/527345#M18161</link>
    <description>&lt;P&gt;In my indexer cluster, one of my indexers has inflight files in the cold and warm storage that range from 1.5-2 months old.&amp;nbsp; There doesn't seem to be any inflight files newer than these and these directories/files are not empty.&amp;nbsp; One index has old inflight files coming out to 1.8TiB of storage.&lt;BR /&gt;&lt;BR /&gt;1.) Why are these files still sticking around for so long? Why isn't Splunk cleaning them up?&lt;/P&gt;&lt;P&gt;2.) How can I get splunk to take care of these files (i.e. delete them)?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Oct 2020 16:56:23 GMT</pubDate>
    <dc:creator>huynha</dc:creator>
    <dc:date>2020-10-30T16:56:23Z</dc:date>
    <item>
      <title>inflight file clean up</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/inflight-file-clean-up/m-p/527345#M18161</link>
      <description>&lt;P&gt;In my indexer cluster, one of my indexers has inflight files in the cold and warm storage that range from 1.5-2 months old.&amp;nbsp; There doesn't seem to be any inflight files newer than these and these directories/files are not empty.&amp;nbsp; One index has old inflight files coming out to 1.8TiB of storage.&lt;BR /&gt;&lt;BR /&gt;1.) Why are these files still sticking around for so long? Why isn't Splunk cleaning them up?&lt;/P&gt;&lt;P&gt;2.) How can I get splunk to take care of these files (i.e. delete them)?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 16:56:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/inflight-file-clean-up/m-p/527345#M18161</guid>
      <dc:creator>huynha</dc:creator>
      <dc:date>2020-10-30T16:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: inflight file clean up</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/inflight-file-clean-up/m-p/527370#M18164</link>
      <description>&lt;P&gt;What do you mean by "inflight files" and where are you finding them?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 20:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/inflight-file-clean-up/m-p/527370#M18164</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-10-30T20:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: inflight file clean up</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/inflight-file-clean-up/m-p/527416#M18171</link>
      <description>&lt;P&gt;they are directories that start with "inflight"&lt;BR /&gt;&lt;BR /&gt;e.g.:&amp;nbsp;inflight-db_1598511485_1598506086_416586130_437D3394-A537-4808-90AC-79857895456D&lt;BR /&gt;&lt;BR /&gt;All I know about I learned from this blog post from 2012&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/restoring-an-index.html," target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/restoring-an-index.html,&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;What is an in-flight bucket? &amp;nbsp;When Splunk transitions a bucket from warm to cold, it is considered to be “in-flight”. &amp;nbsp;There is the potential scenario where a bucket has not completely transitioned, specifically if the storage crashed during the move process. &amp;nbsp;You can find these buckets by looking for “in-flight” within the text of the directory name. &amp;nbsp;You should remove the in-flight bucket as well as include this bucket ID as one that must be also copied to the primary storage from the back up location.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;NOTE: &amp;nbsp;If you get to this point, it is best to consult with support as you may have edge conditions that warrant modifications to these instructions.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm finding them in the cold and warm paths&lt;/P&gt;</description>
      <pubDate>Sat, 31 Oct 2020 15:07:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/inflight-file-clean-up/m-p/527416#M18171</guid>
      <dc:creator>huynha</dc:creator>
      <dc:date>2020-10-31T15:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: inflight file clean up</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/inflight-file-clean-up/m-p/527789#M18183</link>
      <description>&lt;DIV&gt;Got an update from Splunk Support so figured I'd share here:&lt;BR /&gt;&lt;BR /&gt;inflight buckets are actually searchable buckets. There are 2 possible ways to deal with them.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Deleting them is an option because they consume space and won't be rolled out. If you consider they are not needed, go ahead and remove them.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I wouldn't suggest deleting them because they might still hold relevant data. In that case, there can be repaired so they roll out to cold on their own,&amp;nbsp;and eventually age out normally.&amp;nbsp;&amp;nbsp;I'll include instructions on how to fix them:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How to repair buckets:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1- Identify the inflight bucket. e.g&amp;nbsp;inflight-db_1281863647_1281646469_455.&lt;/DIV&gt;&lt;DIV&gt;2- If you are in a cluster environment, put the CM in maintenance mode and issue ./splunk offline on the IDX where the inflight bucket is located. You need to find the primary inflight bucket(inflight-db).&lt;/DIV&gt;&lt;DIV&gt;3- Rename the inflight bucket to a normal bucket. e.g from&amp;nbsp;inflight-db_1281863647_1281646469_455 to&amp;nbsp;db_1281863647_1281646469_455, then turn back up the IDX and remove the maintenance mode on the CM.&lt;/DIV&gt;&lt;DIV&gt;4- After this, Splunk will replicate the bucket and move it to the coldPath.&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Nov 2020 17:50:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/inflight-file-clean-up/m-p/527789#M18183</guid>
      <dc:creator>huynha</dc:creator>
      <dc:date>2020-11-03T17:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: inflight file clean up</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/inflight-file-clean-up/m-p/752758#M29671</link>
      <description>&lt;P&gt;We recently ran into something similar and had to follow this doc on it.&amp;nbsp;&amp;nbsp;&lt;A href="https://splunk.my.site.com/customer/s/article/The-disk-is-getting-completely-filled-up-only-on-one-indexer" target="_blank" rel="noopener"&gt;https://splunk.my.site.com/customer/s/article/The-disk-is-getting-completely-filled-up-only-on-one-indexer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, they do not give any suggestions on how to do it in a timely manner when you have many thousands to deal with.&lt;/P&gt;&lt;P&gt;Basically, maintenance mode, splunk offline, cleanup, start splunk and watch it cleanup.&lt;/P&gt;&lt;P&gt;This is the script I used to remediate ours. Update and use at your own risk:&lt;/P&gt;&lt;PRE&gt;#! /usr/bin/bash

for FN in $(sudo find &amp;lt;cold_path&amp;gt; -maxdepth 3 -type d -name inflight*)
do
    DEST="$(echo ${FN} | sed -e 's/inflight-//g')"
    RF="$(echo ${FN} | sed -e 's/inflight-./r/g')"
    DF="$(echo ${FN} | sed -e 's/inflight-./d/g')"

    if [ -d "${RF}" ] || [ -d "${DF}" ]
    then
        echo "Dup - ${FN}"
    else
        sudo mv -v ${FN} ${DEST}
        #echo "MOVE - ${FN}"
    fi
done&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I also ended up changing it so that the duplicates were just removed right then. We needed the space, and why process it twice.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 14:54:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/inflight-file-clean-up/m-p/752758#M29671</guid>
      <dc:creator>jrobertson</dc:creator>
      <dc:date>2025-09-05T14:54:08Z</dc:date>
    </item>
  </channel>
</rss>

