sandy007
(Sandeep Gawali)
August 18, 2017, 7:06pm
21
Hello Parth,
I am still getting the below error logs in filebeat logs -
tail -f /var/log/filebeat/filebeat
2017-08-19T00:34:00+05:30 INFO Start sending events to output
2017-08-19T00:34:00+05:30 INFO Harvester started for file: /var/log/filebeat/filebeat
2017-08-19T00:34:00+05:30 INFO Harvester started for file: /var/log/messages
2017-08-19T00:34:05+05:30 ERR Connecting error publishing events (retrying): 401 Unauthorized
2017-08-19T00:34:06+05:30 ERR Connecting error publishing events (retrying): 401 Unauthorized
2017-08-19T00:34:08+05:30 ERR Connecting error publishing events (retrying): 401 Unauthorized
2017-08-19T00:34:12+05:30 ERR Connecting error publishing events (retrying): 401 Unauthorized
2017-08-19T00:34:20+05:30 ERR Connecting error publishing events (retrying): 401 Unauthorized
2017-08-19T00:34:30+05:30 INFO Non-zero metrics in the last 30s: filebeat.harvester.open_files=2 filebeat.harvester.running=2 filebeat.harvester.started=2 libbeat.es.publish.read_bytes=1965 libbeat.es.publish.write_bytes=615 libbeat.publisher.published_events=277
2017-08-19T00:34:36+05:30 ERR Connecting error publishing events (retrying): 401 Unauthorized
2017-08-19T00:35:00+05:30 INFO Non-zero metrics in the last 30s: libbeat.es.publish.read_bytes=393 libbeat.es.publish.write_bytes=123
2017-08-19T00:35:08+05:30 ERR Connecting error publishing events (retrying): 401 Unauthorized
2017-08-19T00:35:30+05:30 INFO Non-zero metrics in the last 30s: libbeat.es.publish.read_bytes=393 libbeat.es.publish.write_bytes=123
What couldbe the problem. Due to that My kibana stopped showing logs
steffens
(Steffen Siering)
August 20, 2017, 4:59pm
22
The http response 401 Unauthorized
means you are missing username and password.
sandy007
(Sandeep Gawali)
August 21, 2017, 4:29pm
23
where i need to define the username and password in filebeat to avoid this error message.? Please guide me. I have been playing with this error since last week and still no solution.
steffens
(Steffen Siering)
August 22, 2017, 1:49pm
24
Add username and password to the elasticsearch output (See the documentation and Elasticsearch output docs ).
sandy007
(Sandeep Gawali)
August 29, 2017, 5:43am
25
Thanks steffen,
It worked .. Appreciate your help. I am trying to configure email account in elk.yml file but it keep failing to send the email through wachter .. if i send email from servers root to my email .. it worked but not through the x-pack..not sure what i am doing wrong.below is my email config --
===========================
#"actions" : {
"send_email" : {
"email" : {
"subject" : "Watcher Notification",
"body" : "{{ctx.payload.hits.total}} error logs found"
}
}
#}
xpack.notification.email.account:
smtp_account:
profile: standard
smtp:
auth: false
starttls.enable: false
host: appmgt-5.in.ibm.com
port: 25
===========================
Thanks,
Sandy
steffens
(Steffen Siering)
August 29, 2017, 12:14pm
26
Uhm, for issues with watcher better ask in the X-Pack forums. Also include logs. Just from configs it's hard to tell what's going wrong.
system
(system)
Closed
September 26, 2017, 12:19pm
27
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.