Using JSON with LogStash

Try removing the json codec and adding a json filter: input { file { type => “json” path => “/logs/mylogs.log” } } filter{ json{ source => “message” } } output { file { path => “/logs/out.log” } } You do not need the json codec because you do not want decode the source JSON but … Read more

Removing old indices in elasticsearch

Curator would be an ideal match here. You can find the link here – https://github.com/elastic/curator A command like below should work just fine – curator –host <IP> delete indices –older-than 30 –prefix “twitter-” –time-unit days –timestring ‘%Y-%m-%d’ You can keep in this in the CRON for removing the indices occasionally. You can find some examples … Read more

What are the main differences between Graylog2 and Kibana

At my company we started with Graylog2 and recently installed Kibana3. My personal opinion is that Kibana3 is more suited towards non-dev, while Graylog isn’t. Kibana: Pretty dashboards Graphs, charts and images “panel” customization, adding parallel coordinate graphs for example Easy/flexible management of dashboards (they save directly into their own ES index) Easy deployment (just … Read more

How to do “where not exists” type filtering in Kibana/ELK?

This is easy in Kibana 5 search bar. Just add a filter !(_exists_:”your_variable”) you can toggle the filter or write the inverse query as _exists_:”your_variable” In Kibana 4 and Kibana 3 you can use this query which is now deprecated _missing_:”your_variable” NOTE: In Elasticsearch 7.x, Kibana now has a pull down to select KQL or … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)