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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...