sematext / logagent-js

Extensible log shipper with input/output plugins, buffering, parsing, data masking, and small memory/CPU footprint
https://sematext.com/logagent
Apache License 2.0
389 stars 79 forks source link

Issue #206 #207

Closed adnanrahic closed 4 years ago

adnanrahic commented 4 years ago

There was a bug in the Elasticsearch output plugin. When setting the LOGS_TOKEN in a Docker configuration, while not setting the token in the output section of the Logagent conf file, the Elasticsearch output plugin would not read the token at all if the logs were being parsed from a file on the host machine.

This adds a fix for setting LOGS_TOKEN in a Docker env and reading file input from files on the host machine.