You can use the Linux curl command (or any other HTTP client, for that matter) to upload any type of log file to Logz.io.
HTTP
curl -T <FILE> http://listener.logz.io:8021/file_upload/<TOKEN>/<TYPE>
HTTPS
curl -T <FILE> https://listener.logz.io:8022/file_upload/<TOKEN>/<TYPE>
Parameters
- <FILE> - The full path to the file on your file system
- <TOKEN> - Your Logz.io token (from the Settings page)
- <TYPE> - The log type that you are sending (you can get it from the "Supported Log Types" category)
Limits
- The file size should be up to 10 MB
- Log lines should be \n delimited
Comments
2 comments
hi
Hi,
This is Josh from support, we're happy to help you if you have any questions please either chat with us live via the chat icon found on the bottom right of the Application or our website or email us help@logz.io.
Thanks,
Josh
Please sign in to leave a comment.