<?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: How to delete the uploaded log file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-the-uploaded-log-file/m-p/633779#M108508</link>
    <description>&lt;P&gt;It's not clear to me what it is you wish to delete.&amp;nbsp; There is no uploaded file on Splunk so there's nothing to delete.&amp;nbsp; The original file on your workstation is not touched, other than to read it.&amp;nbsp; Once the data is ingested, you can safely delete the original data.&lt;/P&gt;&lt;P&gt;If you want Splunk to automatically delete a monitored file after it has been indexed, use a batch input.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Inputsconf#:~:text=setting%20also%20exists.-,BATCH,-(%22Upload%20a%20file" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Inputsconf#:~:text=setting%20also%20exists.-,BATCH,-(%22Upload%20a%20file&lt;/A&gt;&amp;nbsp;for details.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 17:36:48 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-03-08T17:36:48Z</dc:date>
    <item>
      <title>How to delete the uploaded log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-the-uploaded-log-file/m-p/633562#M108471</link>
      <description>&lt;P&gt;Hi team,&amp;nbsp;I have uploaded the log file in Splunk via the upload option from settings.&lt;/P&gt;
&lt;P&gt;How to delete the uploaded log file from Splunk.&lt;/P&gt;
&lt;P&gt;Note I- am not looking at hiding the data, I want to remove the entire local file&lt;/P&gt;
&lt;P&gt;Please advise&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 18:49:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-the-uploaded-log-file/m-p/633562#M108471</guid>
      <dc:creator>MS23</dc:creator>
      <dc:date>2023-03-07T18:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete the    uploaded log  file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-the-uploaded-log-file/m-p/633584#M108474</link>
      <description>&lt;P&gt;Hi MS23,&lt;/P&gt;&lt;P&gt;You can read more about data deletion &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Indexer/RemovedatafromSplunk" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Here's the main points:&lt;/P&gt;&lt;P&gt;To selectively delete data from Splunk you can use the delete command, this command does not truly "delete" the data, but it does mark the events in such a way that nobody (not even an admin) can search and return these events.&lt;/P&gt;&lt;P&gt;If you truly need to delete this data then you will need to clean the entire index that stores the data. This is not selective.&amp;nbsp;&lt;STRONG&gt;There is no way to truly delete data without cleaning the entire index that it belongs to.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Depending on how you decide to tackle this, the above documentation will guide you through each option. Please make sure you understand the risks of either method. You have been warned!&lt;/P&gt;&lt;P&gt;P.S. If you're using an Indexer Cluster then you will not be able to effectively clean an index directly.&lt;BR /&gt;You can force the cluster to freeze your data (which in a standard Splunk deployment, will delete your data) using the following frozenTimePeriodInSecs&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Indexesconf" target="_self"&gt;indexes.conf&lt;/A&gt; setting. For example:&lt;BR /&gt;&lt;BR /&gt;(On a standard Splunk deployment, this config will delete all of the events within the my_index_example index. You have been warned!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[my_index_example]
frozenTimePeriodInSecs = 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 16:13:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-the-uploaded-log-file/m-p/633584#M108474</guid>
      <dc:creator>Tom_Lundie</dc:creator>
      <dc:date>2023-03-07T16:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the uploaded log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-the-uploaded-log-file/m-p/633779#M108508</link>
      <description>&lt;P&gt;It's not clear to me what it is you wish to delete.&amp;nbsp; There is no uploaded file on Splunk so there's nothing to delete.&amp;nbsp; The original file on your workstation is not touched, other than to read it.&amp;nbsp; Once the data is ingested, you can safely delete the original data.&lt;/P&gt;&lt;P&gt;If you want Splunk to automatically delete a monitored file after it has been indexed, use a batch input.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Inputsconf#:~:text=setting%20also%20exists.-,BATCH,-(%22Upload%20a%20file" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Admin/Inputsconf#:~:text=setting%20also%20exists.-,BATCH,-(%22Upload%20a%20file&lt;/A&gt;&amp;nbsp;for details.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 17:36:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-the-uploaded-log-file/m-p/633779#M108508</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-08T17:36:48Z</dc:date>
    </item>
  </channel>
</rss>

