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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...