veyalla / logspout-loganalytics

loganalytics provider for logspout
MIT License
30 stars 5 forks source link

Feature request: Edge side module filtering #2

Closed sandervandevelde closed 6 years ago

sandervandevelde commented 6 years ago

Hello, your project has potential. But currently it seems I have no control over the amount of logging messages sent to the cloud.

Is it possible to filter messages:

veyalla commented 6 years ago

@sandervandevelde

logspout has some filtering options like sending stdout vs only stderr and sending logs only from certain containers. See Q #2 from faq: https://github.com/veyalla/logspout-loganalytics/blob/master/faq.md

Q #3 has suggestions on using edge deployments to enable/disable logging easily.

sandervandevelde commented 6 years ago

Yes, the FAQ gives more information, thanks. But is it possible to combine filters? What if I want to filter both on StdErr (filter.sources=stderr) and a module (filter.labels=a:tempSensor*)?

veyalla commented 6 years ago

I believe something like this would work:

"Cmd": [
        "loganalytics://?filter.name=temp*&filter.sources=stderr"
    ],
sandervandevelde commented 6 years ago

Thanks.