Getting Data In

Why do I get "ERROR : cannot concatenate 'str' and 'NoneType' objects: whenever I try to upload a log file?

hayloiuy
Engager

I get this error whenever I try to upload a log file. What is the problem?

ERROR : cannot concatenate 'str' and 'NoneType' objects

bunyk
Engager

For me it happened because source csv file was generated with python without opening file with option newline="", so when I open it on for example Google Sheets, it looks like this:

alt text

Probably that empty rows are "NoneType".

UPD. Also, when I fixed empty rows, it still refused to upload file using Chrome on Windows. When I tried to do that using Firefox it was finally successful.

cpetterborg
SplunkTrust
SplunkTrust

How are you uploading (I assume from the "Add Data" option from the launcher, or a similar method, and not from a UF)?

Does this happen with any file, and if not, what is in the file?

0 Karma

ralphreijs
Explorer

To me it happened with every file, and every file type.
Changing browser from Safari to Firefox fixed it.

0 Karma

hayloiuy
Engager

No problem now. I just changed the file type to .log.

0 Karma

ralphreijs
Explorer

Was that a .csv file or a .log file with an incorrect file extension?

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...