Splunk Search

一度削除したインデックスデータを再度インデックス化したい

snaka
New Member

Forwarder > Indexer の経路でインデックス化したログファイルの情報をForwarderの設定を変更した際にcleanコマンドで消去したところ、かつてのファイルが読み込まれなくなりました。
再度インデックス化する方法はありますでしょうか。

例:
forwarder側
 log、log1、log2、log3、log4・・・(新しい順)
 ↓
indexer側
 log、log1、log2
※以前に削除したlog3、log4がサーチできない。

Tags (3)
0 Karma
1 Solution

cwl
Contributor

一番簡単な方法はoneshotです。

./splunk add oneshot "/path/to/log3.log" -sourcetype mysourcetype

oneshot以外の方法については以下のAnswersの内容が結構参考になります。

How to reindex data from a forwarder

View solution in original post

snaka
New Member

早速の対応ありがとうございます。

最終的な解決はリンク先記事のfishbucketを削除する方法をとりました。
なお、バージョン2.6.1環境ではSplunk本体(indexer)の
fishbucketインデックス名が「_fishbucket」から「_thefishbucket」に
変わっていました。

0 Karma

cwl
Contributor

一番簡単な方法はoneshotです。

./splunk add oneshot "/path/to/log3.log" -sourcetype mysourcetype

oneshot以外の方法については以下のAnswersの内容が結構参考になります。

How to reindex data from a forwarder

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...