Getting Data In

how to set field type as string when upload local csv file

guifeng007
New Member

when upload local csv file, i can't found a way to set field from number type to string type. By default splunk set the field with numer type which i don't want. So, i wonder to know how to set field type as string when upload csv file.

Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Splunk generally doesn't care about data type. A sequence of digits will be treated as a number by default and as a string when necessary. You can always force conversion to a string with tostring().

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Splunk generally doesn't care about data type. A sequence of digits will be treated as a number by default and as a string when necessary. You can always force conversion to a string with tostring().

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...