I have recently enabled Metricbeat sql module to extract data from a custom query.
I have followed the instructions given in sql.yml file (SQL module | Metricbeat Reference [7.9] | Elastic) and hit below error.
Can you please kindly help on this asap?
Jul 21 16:56:56 <hostname> metricbeat[120547]: 2021-07-21T16:56:56.712+0800 INFO module/wrapper.go:266 Error fetching data for metricset sql.query: error opening connection: testing connection: pq: password authentication failed for user <db_user>```
Looks like a bad connection string / password
What does your connection string look like?
What kind of Database?
Are you using 7.9?
Why not a newer version?
What kind of Database? Postgres
Are you using 7.9? Yes
Why not a newer version? I am sorry. This is organizational direction.
Below are the list of strings I tried and all giving same error.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.