Splunk Search

Formatting the digits

yuwtennis
Communicator

Hi!

I would like to do something similar to sprintf of perl.

Which would be like,

sprintf("%02d)

put a 0 in front of digit if the integer has only one digit.

is this possible in splunk?

Thanks,
Yu

Tags (3)
0 Karma
1 Solution

yuwtennis
Communicator

Thanks.

sed looks cool.

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