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!

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!

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