sivasamyk / logtrail

Kibana plugin to view, search & live tail log events
MIT License
1.4k stars 185 forks source link

Defined X index_patterns, but still logs are not updating when selecting from Settings -> index pattern #301

Closed remi-bast closed 6 years ago

remi-bast commented 6 years ago

Hi,

I have configured FileBeat -> LogStash -> Elasticsearch <- Kibana + Logtrail.

FileBeat collects logs from different projects. Logtash strucutres these logs and split them into different indexes by project & week using following output: index => "logs-%{project}-%{+YYYY}w%{+ww}"

Above is working fine and the documents are stored in the right index.

My goal then is to be able to view from Kibana logtrail the logs for a specific project. So I have configured several index_patterns in logtrail.json. For example:

In the UI of Kibana logTrail, under Settings, I can see in the drop down my different index pattern: logs-projectA-, logs-projectB-, etc.

Problem: when selecting logs-projectB-, I am not getting the logs of my projectB. It still shows the logs of logs-projectA- that was initially selected.

Am I doing something wrong?

Note: it works fine when changing the i parameter in the URL: http://localhost:5601/app/logtrail#/?q=*&h=All&t=Now&i=logs-projectB-*&_g=()

Apparently, the dropdown selection is not used correctly?

sivasamyk commented 6 years ago

Hi @remi-bast

remi-bast commented 6 years ago

Hi sivasamyk,

I have Kibana version 6.3.2: kibana-6.3.2-windows-x86_64 I have installed Logtrail using: ./bin/kibana-plugin install https://github.com/sivasamyk/logtrail/releases/download/v0.1.29/logtrail-6.3.2-0.1.29.zip Inside kibana-6.3.2-windows-x86_64\plugins\logtrail\package.json, it shows below information, so version 0.1.29 isntalled: "name": "logtrail", "version": "0.1.29", "description": "Plugin to view, search & tail logs in Kibana", "main": "index.js", "kibana": { "version": "6.3.2" }

When I select a new value in the dropdown, the URL does not change. The settings popup even does not close. When I click search, the popup closes, but the URL does not change.

From debug console, the search query is still using non selected index.

In below screenshot, I have selected logs-default-, but still querying log-zainirq- that was used by default.

image

sivasamyk commented 6 years ago

Looks like you are using Windows OS. Which browser are you using?

On Sun, Aug 12, 2018 at 13:08 remi-bast notifications@github.com wrote:

Hi sivasamyk,

I have Kibana version 6.3.2: kibana-6.3.2-windows-x86_64 I have installed Logtrail using: ./bin/kibana-plugin install https://github.com/sivasamyk/logtrail/releases/download/v0.1.29/logtrail-6.3.2-0.1.29.zip Inside kibana-6.3.2-windows-x86_64\plugins\logtrail\package.json, it shows below information, so version 0.1.29 isntalled: "name": "logtrail", "version": "0.1.29", "description": "Plugin to view, search & tail logs in Kibana", "main": "index.js", "kibana": { "version": "6.3.2" }

When I select a new value in the dropdown, the URL does not change. The settings popup even does not close. When I click search, the popup closes, but the URL does not change.

From debug console, the search query is still using non selected index.

In below screenshot, I have selected logs-default-, but still querying log-zainirq- that was used by default.

[image: image] https://user-images.githubusercontent.com/38810070/43999750-bc007d56-9e3c-11e8-800d-740329186e7f.png

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/sivasamyk/logtrail/issues/301#issuecomment-412324807, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZXevRmv7TbtaIcjjNMuoUMDqdBgPmVks5uP9tYgaJpZM4V5Zc3 .

remi-bast commented 6 years ago

Yes, using Windows 10 Pro - 64 bits.

I tried with different browsers but same behaviour:

sivasamyk commented 6 years ago

Can you share the full screenshot of the settings popup? There should be Ok button in settings popup. Clicking the OK button will change the selected index pattern and refresh the events view.

screen shot 2018-08-12 at 1 43 03 pm
remi-bast commented 6 years ago

Lol...

On my screen resolution, the right part of the popup was cut out. So no OK popup visible...

I zoomed out and can see it now and it works fine.

Topic closed. Thanks!