Writes a log line to Azure Log Analytics Workspace.
An example workflow of using the container on Direktiv.
id: log-to-azure
functions:
- id: log
image: direktiv/azlog:v1
description: "Log a message to Azure Analytics Workspace"
states:
- id: log-hello
type: action
action:
function: log
input: jq(.)
The input needed to run the above workflow properly is the following:
input:
message: "Hello"
"workspace-id": jq(.secrets.WORKSPACE_ID)
key: jq(.secrets.WORKSPACE_KEY)
type: "direktiv"
}
NOTE: The type field is used so you can query based from it in the Analytics Workspace.
If the request is successful. Not output will be returned and the logs should appeared if queried on Azure.
In the case that an error is encountered, it will present in the following format:
{
"errorCode": "com.azlog.error",
"errorMsg": "Something went wrong"
}
Content type
Image
Digest
sha256:08accbd97…
Size
2.3 MB
Last updated
about 4 years ago
docker pull westwind027/azlog