Splunk Search

NULLの場合に他のフィールドの値を代入したい

1014502
New Member

お世話になります。

以下のようなデータがあります。
issue.id,Key
1111 2222
null 3333

issue.idがNUllの場合Keyの値をissue.idに代入したいのですが、どのようにすればよろしいでしょうか。

0 Karma
1 Solution

HiroshiSatoh
Champion

これで良いと思います。

(your search)
| eval issue.id=if(isnull('issue.id'),Key,'issue.id')

View solution in original post

0 Karma

HiroshiSatoh
Champion

これで良いと思います。

(your search)
| eval issue.id=if(isnull('issue.id'),Key,'issue.id')
0 Karma

1014502
New Member

ありがとうございます。無事に解決しました

0 Karma
Get Updates on the Splunk Community!

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

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