Getting Data In

Indexされている任意のイベントを削除したい

Splunk_Shinobi
Splunk Employee
Splunk Employee

ログをIndex化した後のデータの消し方について、特定またはすべてのIndex内のイベントをすべて消すのではなく、一部のイベントを削除する方法をおしえてください。

Tags (2)
0 Karma
1 Solution

melonman
Motivator

サーチを実行するUIから、deleteコマンドを使う方法があります。

...消したいイベントを抽出するためのサーチ... | delete

Deleteコマンドで削除したイベントは、ディスク内には情報は残りますが、サーチの対象外になります。
*消したという事実を残すための仕様のようです。

消し方のステップとしては、

  1. delete コマンドを実行できるようにユーザにdelete_by_keyword権限を付与する。 (もしくはcan_deleteロールを付与)
  2. 消す対象となるイベントを抽出するサーチを作成する。
  3. 2のサーチの後ろに | delete を付け足して、イベントを削除する。
  4. 1でユーザに付与した権限を取り消す。(念のため)

参考
http://docs.splunk.com/Documentation/Splunk/latest/Indexer/RemovedatafromSplunk

View solution in original post

0 Karma

melonman
Motivator

サーチを実行するUIから、deleteコマンドを使う方法があります。

...消したいイベントを抽出するためのサーチ... | delete

Deleteコマンドで削除したイベントは、ディスク内には情報は残りますが、サーチの対象外になります。
*消したという事実を残すための仕様のようです。

消し方のステップとしては、

  1. delete コマンドを実行できるようにユーザにdelete_by_keyword権限を付与する。 (もしくはcan_deleteロールを付与)
  2. 消す対象となるイベントを抽出するサーチを作成する。
  3. 2のサーチの後ろに | delete を付け足して、イベントを削除する。
  4. 1でユーザに付与した権限を取り消す。(念のため)

参考
http://docs.splunk.com/Documentation/Splunk/latest/Indexer/RemovedatafromSplunk

0 Karma
Get Updates on the Splunk Community!

Digital Resilience Assessment Launch | How prepared are you for disruption?

Disruption is inevitable. The question is – how prepared are you to handle it? In today’s fast-moving digital ...

Buttercup Games: Further Dashboarding Techniques (Part 2)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Index This | What is the next number in the series? 7,645 5,764 4,576…

February 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...