Endpoint
You canPOST logs to AppSignal. Your logs must be formatted in JSON, Logfmt or Plaintext and sent to the following endpoint:
Shell
YOUR_LOG_SOURCE_API_KEY with the key provided when creating a log source.
We will use the time our servers receive the POST request as the log timestamp. The default severity will be INFO. You can send the hostname, severity and group/appname parameters by appending them to the URL, for example:
Shell
\n
Structured messages
In order to add additional metadata to a log line, you can send a structured message.Plaintext
By default the source is created with thePlaintext formatter selected,
you can send any string as the message part of the log line, for example:
This is a log message and And this is another message respectively.
Logfmt
WhenLogfmt is selected as the message format, you can send a log line with key-value pairs separated by a space, for example:
This is a log message and This is another log message respectively, and the following attributes:
JSON
WhenJSON is selected as the message format, you can send a log line with a JSON object, for example:
msg or message key for the log line message, and any other keys will be added as attributes. If no msg or message key is provided, we’ll use the entire (unparsed) JSON object as the message. Attributes will still be parsed and added to this line.
You can read more about the specifics of message formatting in our formatting documentation.