You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Promtail stops harvesting logs from log file of docker container if log message exceed 65411B
Promtail autodisover new containers with docker_sd_config configuration - it works fine. I find out, some applications does not have logs in loki and from Promtail logs, I can see:
2022-07-25T10:39:44.936526341Z level=warn ts=2022-07-25T10:39:44.936331925Z caller=target.go:195 target=docker/e406e94a86c61c8d65d80341b779f7700f3cad01cc5a0cd288c34381b8ae495e msg="finished scanning logs lines with an error" err="bufio.Scanner: token too long"
After this, the log file is no longer harvested. Tested on Docker swarm.
To Reproduce
Steps to reproduce the behavior:
loki:2.5.0
promtail:2.5.0
Run python app that prints character as log message
When MSG_LEN is 65411 its ok, 65412 stops working.
Expected behavior
I would expect that Promtail is able to process larger logs, at least, to be able to configure maximum size. Also, it would be better if Promtial just log information that maximum length of log has been exceed but keeps processing other logs.
Environment:
docker swarm
as docker swarm service from yaml configuration file
Screenshots, Promtail config, or terminal output
This is message of starting harvesting container (log level should not be error I think) and when long message occur:
2022-07-25T10:39:28.243719542Z level=error ts=2022-07-25T10:39:28.243569167Z caller=target_group.go:95 msg="added Docker target" containerID=e406e94a86c61c8d65d80341b779f7700f3cad01cc5a0cd288c34381b8ae495e
2022-07-25T10:39:44.936526341Z level=warn ts=2022-07-25T10:39:44.936331925Z caller=target.go:195 target=docker/e406e94a86c61c8d65d80341b779f7700f3cad01cc5a0cd288c34381b8ae495e msg="finished scanning logs lines with an error" err="bufio.Scanner: token too long"
Promtail stops harvesting logs from log file of docker container if log message exceed 65411B
Promtail autodisover new containers with docker_sd_config configuration - it works fine. I find out, some applications does not have logs in loki and from Promtail logs, I can see:
After this, the log file is no longer harvested. Tested on Docker swarm.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect that Promtail is able to process larger logs, at least, to be able to configure maximum size. Also, it would be better if Promtial just log information that maximum length of log has been exceed but keeps processing other logs.
Environment:
Screenshots, Promtail config, or terminal output
The text was updated successfully, but these errors were encountered: