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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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