<?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 logs in a tsidx index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207881#M40991</link>
    <description>&lt;P&gt;Hi cusello,&lt;/P&gt;

&lt;P&gt;tsidx is an file or index?&lt;/P&gt;

&lt;P&gt;If you want to delete this logs, try to run a search who will displays you your logs and delete them after like follow link:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.1/Admin/RemovedatafromSplunk"&gt;http://docs.splunk.com/Documentation/Splunk/4.1/Admin/RemovedatafromSplunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;use the &lt;STRONG&gt;delete&lt;/STRONG&gt; operator, run a search that returns the events you want deleted. Make sure that this search returns ONLY events you want to delete, and no other events.&lt;/P&gt;

&lt;P&gt;For example, if you want to remove the events you've indexed from a source called /fflanda/incoming/cheese.log so that they no longer appear in searches, do the following:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Disable or remove that source so that it no longer gets indexed.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Search for events from that source in your index:&lt;/P&gt;

&lt;P&gt;source="/fflanda/incoming/cheese.log"&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Look at the results to confirm that this is the data you want to delete.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Once you've confirmed that this is the data you want to delete, pipe the search to delete:&lt;/P&gt;

&lt;P&gt;source="/fflanda/incoming/cheese.log" | delete&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Thu, 18 Feb 2016 11:59:15 GMT</pubDate>
    <dc:creator>ngatchasandra</dc:creator>
    <dc:date>2016-02-18T11:59:15Z</dc:date>
    <item>
      <title>How to delete logs in a tsidx index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207878#M40988</link>
      <description>&lt;P&gt;Hi at all,&lt;/P&gt;

&lt;P&gt;I installed Splunk App for BlueCoat.&lt;BR /&gt;
I loaded some test data and now I have to delete them before loading the production data.&lt;BR /&gt;
Logs are loaded in the "bcoat_logs" index and I have no problems to delete them.&lt;BR /&gt;
Instead, the problem is that App loaded logs also in a tsidx index and I don't know how to delete them.&lt;/P&gt;

&lt;P&gt;Can anyone help me?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 10:58:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207878#M40988</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-02-18T10:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete logs in a tsidx index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207879#M40989</link>
      <description>&lt;P&gt;Hello @cusello ,&lt;/P&gt;

&lt;P&gt;I presume that you are talking about the tsidx files located in db folder.&lt;/P&gt;

&lt;P&gt;tsidx files are index files. A tsidx file associates each unique keyword in your data with location references to events, which are stored in a companion rawdata file. Together, the rawdata file and its related tsidx files make up the contents of an index bucket. &lt;/P&gt;

&lt;P&gt;If you do not need the data on &lt;STRONG&gt;bcoat_logs&lt;/STRONG&gt; index, then you can use below command to delete the data. Please be careful, it removes entire data and you need to shutdown indexer to remove data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk clean eventdata -index bcoat_logs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By any chance, if you have an index name with tsidx, then you can not delete specific events from the index. Instead you can use splunk &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Delete"&gt;delete&lt;/A&gt; command to "hide" the data &lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 11:31:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207879#M40989</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2016-02-18T11:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete logs in a tsidx index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207880#M40990</link>
      <description>&lt;P&gt;I already deleted data from the bcoat_logs index but data is still in the tsidx file and I don't know how to delete them.&lt;BR /&gt;
Thank you.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 11:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207880#M40990</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-02-18T11:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete logs in a tsidx index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207881#M40991</link>
      <description>&lt;P&gt;Hi cusello,&lt;/P&gt;

&lt;P&gt;tsidx is an file or index?&lt;/P&gt;

&lt;P&gt;If you want to delete this logs, try to run a search who will displays you your logs and delete them after like follow link:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.1/Admin/RemovedatafromSplunk"&gt;http://docs.splunk.com/Documentation/Splunk/4.1/Admin/RemovedatafromSplunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;use the &lt;STRONG&gt;delete&lt;/STRONG&gt; operator, run a search that returns the events you want deleted. Make sure that this search returns ONLY events you want to delete, and no other events.&lt;/P&gt;

&lt;P&gt;For example, if you want to remove the events you've indexed from a source called /fflanda/incoming/cheese.log so that they no longer appear in searches, do the following:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Disable or remove that source so that it no longer gets indexed.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Search for events from that source in your index:&lt;/P&gt;

&lt;P&gt;source="/fflanda/incoming/cheese.log"&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Look at the results to confirm that this is the data you want to delete.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Once you've confirmed that this is the data you want to delete, pipe the search to delete:&lt;/P&gt;

&lt;P&gt;source="/fflanda/incoming/cheese.log" | delete&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 18 Feb 2016 11:59:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207881#M40991</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2016-02-18T11:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete logs in a tsidx index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207882#M40992</link>
      <description>&lt;P&gt;If you have deleted the data from bcoat_logs using &lt;CODE&gt;./splunk clean eventdata -index bcoat_logs&lt;/CODE&gt;, then you don't need to worry about the idx files and it's not advisable to remove those files manually.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207882#M40992</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-29T08:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete logs in a tsidx index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207883#M40993</link>
      <description>&lt;P&gt;The Splunk App for BlueCoat stores logs in the bcoat_logs index and also in a tsidx called "bluecoat_stats " as you can see in the "BlueCoat - Stats - Collect" search:&lt;BR /&gt;
&lt;EM&gt;&lt;CODE&gt;bcoat_request&lt;/CODE&gt; | table _time action bytes_in bytes_out category cs_uri_path cs_uri_scheme dest_host filter_result http_content_type http_referrer http_user_agent src_ip src_user x_bluecoat_application_name x_virus_id | tscollect namespace=bluecoat_stats&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;I already deleted logs from the bcoat_logs index, but the problem is that I don't know how to delete them from the "bluecoat_stats", because the delete command cannot be executed on a "|tstats" command, in the Summary index there aren't logs from Splunk App for BlueCoat and there isn't an index with this name to clear with the CLI command.&lt;/P&gt;

&lt;P&gt;when documentation speaks about tsidxstats "This must be manually managed if tscollect is used to create the files." I don't know where is this information "to manually manage tsidxstats" and in the tscollect documentation there isn't any useful information.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:50:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-logs-in-a-tsidx-index/m-p/207883#M40993</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T08:50:06Z</dc:date>
    </item>
  </channel>
</rss>

