Coralogix exposes an API that allows you to send your logs from basically anywhere, here is how:
*We recommend sending logs in “bulks” or “batches” to minimize network calls.
**If you are using Ajax (or similar technology) you might need to send the data with JSON.stringify())
|Required||Property Name||Property Type||Note|
|Yes||applicationName||string||usually used to separate environments|
|Yes||subsystemName||string||usually used to separate components|
|Yes||logEntries||array of logs|
Required Property Name Property Type Notes
Yes timestamp number UTC milliseconds since 1970 (supports sub millisecond via a floating point)
Yes severity number 1 – Debug, 2 – Verbose, 3 – Info, 4 – Warn, 5 – Error, 6 – Critical
Yes text string category string className string methodName string threadId string
Coralogix rest API implementation Example:
** If you are sending a JSON payload note that you should escape it like in the above example and then insert it into the text field (text field should be sent as string)
** Make sure you use UTC time in milliseconds
Need help? We love to assist our customers, simply book your implementation session, and we will walk you through, step by step.