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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...