Problem:
While configuring the sources using source.json file on windows OS, I am getting below error:
Invalid source: * The JSON file <complete path>\source.json contains invalid value.
Resolution:
First, we need to check if this is a valid JSON formatted file.
If it is a valid json then we need to check if we are using PowerShell to copy the source.json to the server, then this issue can happen as the format of the source.json file gets changed from ASCII.
Once we change the format back to ASCII, then it should work fine.
Comments
2 comments
Back to ASCII? I thought it needed to be formatted as UTF-8.
I'm pretty frustrated with Sumologic's documentation and JSON generation.
And this error message is super unhelpful.
This article was helpful because it contradicts the information in the following article, which is wrong, and caused my problems:
https://help.sumologic.com/03Send-Data/Sources/03Use-JSON-to-Configure-Sources/Troubleshooting_JSON_to_Configure_Sources
Please sign in to leave a comment.