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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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