Dashboards & Visualizations

Dashboard Studio - Column Data keeps getting detected by a number which cuts off any leading zeroes?

austindodig
Engager

To try something new, I decided to try my hand at creating one of my new dashboards in Dashboard Studio. I'm running into an issue that I can't seem to overcome.

I have a table which is using an SPL as a data source. One of the fields is "zip code" . When viewing the SPL in search, the zip code displays as intended (i.e. 5 characters, with leading zeros in tact).  However, when I add it to the table object in DS, it detects that column as a number which in turn cuts off any leading zeros. I have tried everything I can find in the documentation regarding column formatting, but can't seem to convert it back to string.

Any ideas on how to either prevent the table from detecting it as a number, or how to convert it back to string once it's loaded in?

Labels (1)

rps462
Path Finder

I'm having the same exact issue ... data looks fine in the event, looks fine in even a classic dashboard stats table, but in DS it's all messed up. Adding a space before the string doesn't fix it either. =\

This column just has data in it's that's a combo of letters and numbers, for example: 00882b87

There are times where all the leading zeroes are not there, other times where they are. There doesn't seem to be a pattern here. All I know is that it makes a day's worth of effort building this dashboard a complete waste of time.

0 Karma

nickelous
Engager

We're having the same issue. 

0 Karma

austindodig
Engager

I found a duct tape work around, but would still like to know how to do it officially.

In the SPL, I appended a non-character blank space to the beginning of the zip code column and now DS reads the column as a string. 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...