Getting Data In

Should I reformat my csv data that I am ingesting?

bpiela
New Member

I have a csv file that is created by a shell script on a Linux server and runs every minute.  I am running a forwarder on the server to send the data to splunk.  The csv file has a header line containing the field names.  Some of the data has units along with the number.  What I mean is if the number is a percent, the number might look like "10%".  If a number is measured in microseconds, the number might look like "10us".  Is that the best way to ingest the data?  Should I remove the units?  Does Splunk see "10us" as a number?   Thanks!

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Splunk will interpret "10us" as a string because it contains characters that don't belong in a number (sign, digits, decimal separator).  To ensure Splunk treats numbers as numbers, remove any units before ingestion, if possible.  

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

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...