Getting Data In

-output tableの動作について

cwl
Contributor

CLIで「splunk search "index=_internal | table _raw" -output csv -maxout 10」のように「-output csv」を使う場合、「_raw」の内容が表示されるが、「splunk search "index=_internal | table _raw" -output table -maxout 10」のように「-output table」を使う場合、「_raw」の内容が表示されません。この動作は製品仕様ですか?

Tags (3)
0 Karma
1 Solution

cwl
Contributor

CLIで「-output table」を使う場合、「_raw」の内容が表示されないのは、製品仕様です。「_raw」を「-output table」で表示する必要がある場合、以下の例の通り、「eval」を使うと表示できます。

splunk search "index=_internal | eval raw=_raw | table raw" -output table -maxout 10

View solution in original post

0 Karma

cwl
Contributor

CLIで「-output table」を使う場合、「_raw」の内容が表示されないのは、製品仕様です。「_raw」を「-output table」で表示する必要がある場合、以下の例の通り、「eval」を使うと表示できます。

splunk search "index=_internal | eval raw=_raw | table raw" -output table -maxout 10

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 GA in US-AWS!

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