HUB
Sign inSign up

westwind027/azlog

By westwind027

•Updated about 4 years ago

Image
0

427

westwind027/azlog repository overview

⁠AzureLog

Writes a log line to Azure Log Analytics Workspace.

⁠Direktiv

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(.)

⁠Input

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.

⁠Output

If the request is successful. Not output will be returned and the logs should appeared if queried on Azure.

⁠Error

In the case that an error is encountered, it will present in the following format:

{
    "errorCode": "com.azlog.error",
    "errorMsg": "Something went wrong"
}

Tag summary

Content type

Image

Digest

sha256:08accbd97…

Size

2.3 MB

Last updated

about 4 years ago

docker pull westwind027/azlog