Splunk Search

convert num(fieldname) as depth does not convert field to a number

tzitello_splunk
Splunk Employee
Splunk Employee

When I run the following search, the field does not convert to a number:
search| convert num(Samples.Sample.Depth) as depth

depth field shows up as alpha numeric instead of numeric (a instead of #)
I am running V 7.2.1

Tags (1)
0 Karma

woodcock
Esteemed Legend

Don't worry about that; what does this show when you add it?

| eval type=typeof(depth)

Also, is the value on the Statistics tab right-justified ( string ) or left-justified ( number )?

0 Karma

whrg
Motivator

Could you give an example?

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...