Altinity / clicktail

Apache License 2.0
283 stars 57 forks source link

There is No Switch for Passing ClickHouse DB Password by ClickTail #7

Closed imomo86 closed 5 years ago

imomo86 commented 5 years ago

when ClickHouse DB has password authentication, a password must be sent by Clicktail, by I couldn't find any switch for passing password by Clicktail.

for ex: sudo clicktail -p nginx -f /var/log/nginx/access.log -d clicktail.nginx_log --nginx.conf=/etc/nginx/nginx.conf --nginx.format=combined

response from server: Could not connect to ClickHouse server:  ClickHouse server rejected authentication

amonakhov commented 5 years ago

Hello mofard,

You don't need a switch in order to connect to password-locked DB. You can use APIHost parameter for that matter (see clicktail.conf).

Example:

[Application Options]
; APIHost = http://changeuser:changepass@localhost:8123/

you can also use api_host parameter from CLI.

imomo86 commented 5 years ago

Thanks a million, it's works, but it's not mentioned in clicktail.conf