Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it work with Kibana ? #151

Open
saurabhPV opened this issue Oct 7, 2020 · 4 comments
Open

Does it work with Kibana ? #151

saurabhPV opened this issue Oct 7, 2020 · 4 comments

Comments

@saurabhPV
Copy link

I see this doesn't sit on top of the es unlike xpack or opendistro so I can not use

elasticsearch.username: and elasticsearch.password:

as mentioned in kibana docs
I tried to use basic auth by passing username and passwork in the url like http://foo:bar@arc:8000 but that didn't work.

Please let me know if it's possible to run it with Kibana ?

@siddharthlatest
Copy link
Member

@saurabhPV If I understand correctly, the flow you're trying to use is:

[ Kibana ] --> [ Arc acts as a reverse proxy ] --> [ Elasticsearch ]

When you're setting elasticsearch.username and elasticsearch.password, are you also setting elasticsearch.hosts? The latter should point to the Arc host, it defaults to Elaticsearch host.

@saurabhPV
Copy link
Author

Thanks a lot @siddharthlatest for the quick response !
Like you said

[ Kibana ] --> [ Arc acts as a reverse proxy ] --> [ Elasticsearch ]

this is exactly I am trying to achieve. It would be really helpful to know if it is possible and what configuration do I need to do.

Yes I am using http://arc:8000 (- I am using docker and I am sure it resolves to correct service I have tried it from kibana container) as host url.

@saurabhPV
Copy link
Author

saurabhPV commented Oct 7, 2020

I have one more question regarding config do I need to do anything to configure logging ?

I queried es using
curl -XGET "http://foo:bar@localhost:8000/_search" -H 'Content-Type: application/json' -d'{ "query": { "match_all": {} }}'

and then I tried to view what type of log it generates using

curl --location --request GET 'http://foo:bar@localhost:8000/_logs/search'

In the response {"logs":[],"took":2,"total":0} I don't see any log.

In the example response on the api doc https://arc-api.appbase.io/#06f127ed-fd05-4832-a67f-6285a8bd5319 I don't see any user info is there a way to enable it ?

Logs are triggered for failed auth too?

@saurabhPV
Copy link
Author

@siddharthlatest I found out arc uses Fluentbit (from this repo.) to ship log to elasticsearch. Could you please help me to configure it to use in this repo (I am facing issue in that approach as well)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants