Sign inSign up

myplooploops/log2oms

By myplooploops

Updated about 8 years ago

Log2Oms container wrapped from https://github.com/yangl900/log2oms

Image
0

114

myplooploops/log2oms repository overview

This is a wrapper for the go client from https://github.com/yangl900/log2oms.

The log2oms container requires only 4 environment variables to run: LOG2OMS_WORKSPACE_ID This is the workspace ID of Log Analytics. LOG2OMS_WORKSPACE_SECRET This is the secret of your workspace, you can find it from "Advanced Settings" in Azure portal. LOG2OMS_LOG_FILE This is the log file to tail and upload. Right now only support 1 file, in nginx case, this will be access.log LOG2OMS_LOG_TYPE This is the table you want logs upload to. Note that LogAnalytics will add a postfix _CL to this name. so if we have nginx here, in LogAnalytics the table will be nginx_CL.

docker run -it -e LOG2OMS_WORKSPACE_ID='OMS ID' -e LOG2OMS_WORKSPACE_SECRET='the secret' -e LOG2OMS_LOG_FILE='log-path' -e LOG2OMS_LOG_TYPE='log-type' <repo>/log2oms:nanoserver-1803

Tag summary

Content type

Image

Digest

Size

4.5 MB

Last updated

about 8 years ago

docker pull myplooploops/log2oms:alpine-test