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!

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, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...