TLDR Simon encountered a 500 error when uploading logs to Zincobserve. Hengfei suggested using `--data-binary "@demo.log"` instead of `-d`, which resolved the issue.
What is your notice.log format?
a app log file, multiple json lines, such as : ```{"app": "order", "msg": "some msg"} {"app": "order", "msg": "some msg 2"}```
try this:
``` curl
get new error: `invalid number at line 1 column 2`
i guess you file format not json line by line. maybe you file content is an array of json.
can you show some line of your file?
oo, It's real multi line json... there are lines in file head: ```{"time":1684922046,"type":"info","thread":"main","data":{},"msg":"start"} {"time":1684922046,"type":"info","thread":"main","data":{},"msg":"start ok"} {"time":1684922046,"type":"info","thread":"main","data":{},"msg":"app started"}```
No problem, but the error looks file format error.
Can you give the file to me, let me check.
hi, you can save provided JSON lines as `demo.log` i get same error:
zinc-observe version is v0.4.4
is my test, it is no problem. with your log contents.
okay
your curl command is wrong.
please use ```--data-binary "@demo.log"```
thanks
hi, i tested, if use `-d "@demo.log"` will get error.
mybe because my os is windows? shell is git bash
```inhere@inhere-win MINGW64 ~/Downloads/a
$ curl -X 'POST' '
you can't use `-d`
the command `-d` must provide some data, not a file.
if you want to provide a file, please use ```--data-binary "@demo.log"```
:joy: ok, thanks you.
if you are in China, you can join our Wechat Group, thanks.
OK.
Simon
Fri, 26 May 2023 09:49:15 UTChi, I installed zincobserve by docker in local. then: `curl -i -u email:pwd -d @notice.log`
upload my multi line JSON logs. but reponse error:
```HTTP/1.1 500 Internal Server Error
content-length: 40
vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers
content-type: text/plain; charset=utf-8
date: Fri, 26 May 2023 09:16:31 GMT
trailing characters at line 1 column 351```