Splunk Search

Encountered the following error while trying to save: File has no line endings

atebysandwich
Path Finder

I get the error showed in the title when tying to upload a csv as  lookup. I tried the solution mentioned here: 
https://community.splunk.com/t5/Splunk-Search/What-does-the-error-quot-File-has-no-line-endings-quot...
but that doesn't work. Any suggestions? 

Labels (1)
Tags (2)
0 Karma
1 Solution

atebysandwich
Path Finder

I lessened the amount of fields in the csv and that solved the issue. 

View solution in original post

0 Karma

marnall
Motivator

Are you able to open the file in a text editor, then copy the content to a new file, then save it as .csv? Perhaps there is a hidden part of the file which is causing issues. You could also try opening the lookup with the lookup editor app and then pasting the contents into the lookup editor interface, assuming the file is not too big.

Some other troubleshooting steps:

1. Can you upload other CSV files?

2. Can you truncate the problem file to a smaller csv file and try uploading it?

3. Can you try saving the .CSV file using a different text processor?

0 Karma

atebysandwich
Path Finder

I lessened the amount of fields in the csv and that solved the issue. 

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!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...