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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...