Getting Data In

Can not re-index file after delete

tedfong
Explorer

I deleted all records by using the command
- sourcetype=cws_app_log|delete
The records deleted successfully.
However, i can not re-index another new file in the same directory/same sourcetype even i created a new sourcetype.
Is there any problem? please help. thanks

Tags (2)
0 Karma
1 Solution

tedfong
Explorer

dear all,
the problem solved after restarted splunk. thanks

View solution in original post

0 Karma

tedfong
Explorer

dear all,
the problem solved after restarted splunk. thanks

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi tedfong,

The delete command does not delete events, it just hides event from being shown in a search. See the docs for more details http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Delete

To re-index your file you must first clean the fishbucket, this is where Splunk keeps track of the indexed files, see the docs for more detail http://docs.splunk.com/Documentation/Splunk/6.2.1/Troubleshooting/CommandlinetoolsforusewithSupport#... to clean only one or more files.
If you can remove everything that was indexed until now run this command

$SPLUNK_HOME/bin/splunk clean all

Cheers, MuS

0 Karma

tedfong
Explorer

I got the error like below but it is not the last one. I am not able to index other file. It stopped at the last line

12-30-2014 17:33:44.394 +0800 ERROR ApplicationUpdater - Error checking for update, URL=/api/apps:resolve/checkforupgrade: Connect to=https://apps.splunk.com timed out; exceeded 10sec
12-30-2014 17:34:11.048 +0800 INFO DatabaseDirectoryManager - Writing a bucket manifest in hotWarmPath='D:\Program Files\Splunk\var\lib\splunk_internaldb\db'. Reason='Updating manifest: bucketUpdates=1'
12-30-2014 17:34:11.095 +0800 INFO DatabaseDirectoryManager - Writing a bucket manifest in hotWarmPath='D:\Program Files\Splunk\var\lib\splunk_introspection\db'. Reason='Updating manifest: bucketUpdates=1'
12-30-2014 17:34:12.048 +0800 INFO DatabaseDirectoryManager - Writing a bucket manifest in hotWarmPath='D:\Program Files\Splunk\var\lib\splunk\audit\db'. Reason='Updating manifest: bucketUpdates=1'
12-30-2014 17:36:56.150 +0800 INFO WatchedFile - Resetting fd to re-extract header.
12-30-2014 17:36:56.150 +0800 INFO BatchReader - Removed from queue file='E:\SPLUNK\CWS\INBOX\test\SIT\cws_app_log_sit2\20141215cws_app_log_sit1.csv'.

0 Karma

tedfong
Explorer

I found the below error from the splunk log and try to fix it by by adding crcSalt as below. But seems its not work.

12-30-2014 15:24:31.493 +0800 ERROR TailingProcessor - File will not be read, seekptr checksum did not match (file=E:\SPLUNK\CWS\INBOX\test\SIT\cws_a\csms_20141214_17_HKX35A.log). Last time we saw this initcrc, filename was different. You may wish to use a CRC salt on this source. Consult the documentation or file a support case online at http://www.splunk.com/page/submit_issue for more info.

<<<<<<<<

[monitor://E:\SPLUNK\CWS\INBOX\test\SIT\cws_a\*.log] 
disabled = false
followTail = 0
sourcetype = CWS_LOG_SIT3
index = main
crcSalt = 
0 Karma

MuS
SplunkTrust
SplunkTrust

If you want to use crcSalt it should look like this:

crcSalt = <SOURCE>
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...