Monitoring Splunk

How to fsck scan thaweddb folder?

goran_zivkovic
Explorer

According to official Troubleshooting documentation fscan command has "--thawed" switch in splunk 6.5.1 version also.
(http://docs.splunk.com/Documentation/Splunk/6.5.1/Troubleshooting/CommandlinetoolsforusewithSupport)

I tried to use it as:
splunk fsck scan --all-buckets-one-index --index-name=my_index ----thawed
and got response:
_ Unrecognized argument "--thawed"_

Any idea how to scan all thawed bucket without use external script and single bucket selection?
(splunk fsck scan --one-bucket --bucket-path=/opt/splunk/var/lib/splunk/my_index/thaweddb/db_1234567890/

0 Karma

goran_zivkovic
Explorer

Hi,

As I sad, I used ".. --index myindex" as described in help command, and got error "Unrecognized argument "--index""

0 Karma

goran_zivkovic
Explorer

Hi!

Seems that there are some errors on support page:

root@myserver# /opt/splunk/bin/splunk fsck scan --all-buckets-one-index --index myindex --thawed
Unrecognized argument "--index"

Also:
root@myserver# /opt/splunk/bin/splunk fsck --help

USAGE

Supported modes are: scan, repair, clear-bloomfilter, check-integrity, generate-hash-files

:= --one-bucket|--all-buckets-one-index|--all-buckets-all-indexes
[--index-name=] [--bucket-name=] [--bucket-path=]
[--include-hots]
[--local-id=] [--origin-guid=]
[--min-ET=] [--max-LT=]

goran_zivkovic
Explorer

Hi!

Little bash scripting can help:

for bucket_folder in ls -1 thawed_folder; do /opt/splunk/bin/splunk fsck scan --one-bucket --bucket-path=thawed_folder/$bucket_folder;done

🙂

0 Karma

ddrillic
Ultra Champion

Based on Command line tools for use with Support

We see -

alt text

Your --index-name=my_index doesn't look right...

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...