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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...