Splunk Search

10000行を超える結果の表示について

KagotaniMasato
Explorer

stats count byで1万行を超える検索結果に対して、次の処理をしたいと考えています
limits.confを編集しても1万行を超える検索結果が返されませんが、どのように設定すれば1万行を超える検索結果を表示できるようになりますでしょうか?

0 Karma
1 Solution

Suda
Communicator

limits.confを編集していない、私のテスト環境では、stats count byで、1万行以上の検索結果が出力され、次の処理もできます。

実行例:
index=_internal | head 200000 | stats count by _raw | stats count
result: count = 199927   

なお、1万行以上のデータが扱えないと聞くと、sortコマンドの影響を連想します。
sortは、sort 0 fieldnameのように無制限を意味する「0」を明記しないと1万行で切ってしまいます。ご確認ください。
sortコマンドリファレンス
検索式全体を記載いただくと、より具体的に考える事ができます。ご検討ください。

View solution in original post

0 Karma

Suda
Communicator

limits.confを編集していない、私のテスト環境では、stats count byで、1万行以上の検索結果が出力され、次の処理もできます。

実行例:
index=_internal | head 200000 | stats count by _raw | stats count
result: count = 199927   

なお、1万行以上のデータが扱えないと聞くと、sortコマンドの影響を連想します。
sortは、sort 0 fieldnameのように無制限を意味する「0」を明記しないと1万行で切ってしまいます。ご確認ください。
sortコマンドリファレンス
検索式全体を記載いただくと、より具体的に考える事ができます。ご検討ください。

0 Karma

KagotaniMasato
Explorer

ありがとうございました
解決しました

0 Karma
Get Updates on the Splunk Community!

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

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...