Describe the bug
I see
msg="WARNING!!! entry_parser config is deprecated, please change to pipeline_stages"
up on start without using that field.
Log from startup
Jul 24 09:07:11 host systemd[1]: Started Loki Promtail.
Jul 24 09:07:11 host promtail-linux-1.5.0.linux-amd64[47070]: level=warn ts=2020-07-24T09:07:11.446333125Z caller=filetargetmanager.go:98 msg="WARNING!!! entry_parser config is deprecated, please change to pipeline_stages"
Jul 24 09:07:11 host promtail-linux-1.5.0.linux-amd64[47070]: level=info ts=2020-07-24T09:07:11.447171031Z caller=server.go:179 http=[::]:9080 grpc=127.0.0.1:9095 msg="server listening on addresses"
Jul 24 09:07:11 host promtail-linux-1.5.0.linux-amd64[47070]: level=info ts=2020-07-24T09:07:11.44749742Z caller=main.go:67 msg="Starting Promtail" version="(version=1.5.0, branch=HEAD, revision=12c7eab8)"
Jul 24 09:07:16 host promtail-linux-1.5.0.linux-amd64[47070]: level=info ts=2020-07-24T09:07:16.447528846Z caller=filetargetmanager.go:270 msg="Adding target" key="{host=\"host\", job=\"logfile\"}"
Jul 24 09:07:16 host promtail-linux-1.5.0.linux-amd64[47070]: ts=2020-07-24T09:07:16.450655268Z caller=log.go:124 component=tailer level=info msg="Seeked /var/log/unattended-upgrades/unattended-upgrades-shutdown.log - &{Offset:452 Whence:0}"
Jul 24 09:07:16 host promtail-linux-1.5.0.linux-amd64[47070]: ts=2020-07-24T09:07:16.451015344Z caller=log.go:124 component=tailer level=info msg="Seeked /var/log/apt/term.log - &{Offset:74681 Whence:0}"
Jul 24 09:07:16 host promtail-linux-1.5.0.linux-amd64[47070]: level=info ts=2020-07-24T09:07:16.451186722Z caller=tailer.go:80 component=tailer msg="start tailing file" path=/var/log/apt/term.log
Jul 24 09:07:16 host promtail-linux-1.5.0.linux-amd64[47070]: ts=2020-07-24T09:07:16.45137111Z caller=log.go:124 component=tailer level=info msg="Seeked /var/log/apt/history.log - &{Offset:13156 Whence:0}"
Jul 24 09:07:16 host promtail-linux-1.5.0.linux-amd64[47070]: level=info ts=2020-07-24T09:07:16.451507178Z caller=tailer.go:80 component=tailer msg="start tailing file" path=/var/log/unattended-upgrades/unattended-upgrades-shutdown.log
Jul 24 09:07:16 host promtail-linux-1.5.0.linux-amd64[47070]: ts=2020-07-24T09:07:16.451626185Z caller=log.go:124 component=tailer level=info msg="Seeked /var/log/unattended-upgrades/unattended-upgrades.log - &{Offset:2394 Whence:0}"
Jul 24 09:07:16 host promtail-linux-1.5.0.linux-amd64[47070]: level=info ts=2020-07-24T09:07:16.451697813Z caller=tailer.go:80 component=tailer msg="start tailing file" path=/var/log/unattended-upgrades/unattended-upgrades.log
Jul 24 09:07:16 host promtail-linux-1.5.0.linux-amd64[47070]: ts=2020-07-24T09:07:16.451760479Z caller=log.go:124 component=tailer level=info msg="Seeked /var/log/unattended-upgrades/unattended-upgrades-dpkg.log - &{Offset:0 Whence:0}"
Jul 24 09:07:16 host promtail-linux-1.5.0.linux-amd64[47070]: level=info ts=2020-07-24T09:07:16.451794544Z caller=tailer.go:80 component=tailer msg="start tailing file" path=/var/log/unattended-upgrades/unattended-upgrades-dpkg.log
Jul 24 09:07:16 host promtail-linux-1.5.0.linux-amd64[47070]: level=info ts=2020-07-24T09:07:16.451512019Z caller=tailer.go:80 component=tailer msg="start tailing file" path=/var/log/apt/history.log
To Reproduce
Config
server:
grpc_listen_port: 9095
http_listen_port: 9080
positions:
filename: /var/log/promtail.positions.yaml
clients:
- url: http://127.0.0.1:3100/loki/api/v1/push
scrape_configs:
- job_name: logfile
pipeline_stages: []
static_configs:
- labels:
__path__: /var/log/{,*/}{*[._]log,{mail,news}.{err,info,warn}}
host: host
job: logfile
targets:
- localhost
Expected behavior
entry_parser is not used. I do not expect this message.
Thanks for reporting this @j0ju, I noticed too that I was seeing this in the logs and hadn't looked very closely, seems like a bug has slipped in here displaying this warning when it shouldn't be there!
I have the same issue.
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
I am seeing this behavior as well with v1.6.1. Nowhere in my config is the entry_parser option being used.
https://grafana.com/docs/loki/latest/clients/promtail/configuration/#scrape_config
should be
- job_name: grafana
pipeline_stages:
- docker: {}
static_configs:
- targets:
- grafana
labels:
job: grafana
__path__: /usr/local/var/log/grafana/grafana.log
iow at least one key is required and that will make the warning stop
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Most helpful comment
I am seeing this behavior as well with v1.6.1. Nowhere in my config is the entry_parser option being used.