Getting Data In

deleteコマンドの実行に時間がかかっている

cwl
Contributor

can_deleteロールが付与されたadminユーザでsplunkにアクセスし、search appで以前イベントの削除に成功したdeleteコマンドを実行したところ、1時間経っても、サーチの実行が終わらず、キャンセルされました。

index=xxx source=yyy/zzz.log | delete 

原因と解決方法を教えてください。

Tags (2)
0 Karma
1 Solution

cwl
Contributor

以下のようなメッセージがsplunkd.logに出力されているかを確認してください。

INFO ScopedSTLock - Waiting to acquire lock for path=/opt/splunk/var/lib/splunk/xxx/db/.db_nnnnnnnnnn_mmmmmmmmmm_1.rbsentinel

出力されている場合、バケット内にrbsentinelファイルを存在しているかを確認してください。
存在している場合、splunkを停止し、rbsentinelファイルを削除し、splunkを開始してから、再度deleteコマンドを実行してください。

View solution in original post

0 Karma

cwl
Contributor

以下のようなメッセージがsplunkd.logに出力されているかを確認してください。

INFO ScopedSTLock - Waiting to acquire lock for path=/opt/splunk/var/lib/splunk/xxx/db/.db_nnnnnnnnnn_mmmmmmmmmm_1.rbsentinel

出力されている場合、バケット内にrbsentinelファイルを存在しているかを確認してください。
存在している場合、splunkを停止し、rbsentinelファイルを削除し、splunkを開始してから、再度deleteコマンドを実行してください。

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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