logzio / logzio-azure-serverless

Azure function that ships Logs to logz.io
Apache License 2.0
10 stars 12 forks source link

Add configurable labels to all logs #47

Open ClemArt opened 4 years ago

ClemArt commented 4 years ago

Feature Request We would like to add static labels to all logs that are parsed, based on a configuration passed to the function. But we're ready to fork and implement something on our side.

The configuration could be a map with keys and values that are added to each log's JSON.

Are you open to pull requests to add such a feature in the function's code ? Could you advise un on how we should implement this feature ?

Thanks in advance

idohalevi commented 4 years ago

@ClemArt Hi! We're welcoming PRs so feel free to contribute. Will something like LOGZIO_EXTRA_DIMENSIONS in this repo solve your use-case?

ClemArt commented 4 years ago

Hi @idohalevi , the LOGZIO_EXTRA_DIMENSIONS is exactly what we are looking for ! Thank you for the tip. I'm still not sure how this feature will translate in the case of the azure function, but I'll dig into the code and try to stay as close as possible to the example you gave me

Doron-Bargo commented 3 years ago

Hi @ClemArt - is this still relevant ?