This post contains information which have been updated in post

docker ELK with compose v2

However to get idea of how solution works I recommend just reading through πŸ™‚


Its been a long time when it was a bit quiet here however there was a lot that I was busy with. And as you know its in majority of scenarios theΒ timeΒ we are short on πŸ™‚ Β Today I wanted to share with you update to one of my previous posts where we setup ELK in automated way

When I originally finished the post it of coourse ‘was working like a charm!” and then I just left it for a while and focused on couple of other projects. And recently I visited that page back as I wanted to quickly deploy ELK stack for my testing…. and then suprise – it does not work ?! Of course IT world is like a super speed train πŸ™‚ and seems like I just stopped on a station and forgot to jump back there πŸ™‚

So from my perspective it was a great opportunity to craft some extra bash skillks and refresh knowledge about ElasticSearch , Logstash and Kibana.

So what’s changed ?

First of all there is now one major script which gets the job done. the only thing you need to do is to specify a cluster name for elasticsearch.

Also I have added some folder existance checking so it doesnt come with dummy error msgs that folders do exist already.

How to run it now ?

Start by downloading script locally to folder under which we will create remaining folders for our components

The -L option is there for purposes of followiing redirect (as thats what is doing for us )


Once done you might need to change it to executable


And thats all πŸ™‚ last thing to do is to execute the script with first argument being desired name of your elasticsearchcluster. Output is almost instant and promising πŸ™‚


Lets check docker deamon if our containers are indeed running …


They all do πŸ™‚ thats took less than second (altough I had the images already on my host … ) and if we just check browser ?




And if anything changes ? Well then this is all in git … πŸ™‚ so just pull for changes and you will defenitely get the most up to date version. But maybe you have some suggstions or improvements ? Then just push them – I’m sure it would be beneficial πŸ™‚


Below is the view on the gIst πŸ™‚