Start a single node elastic cluster with Docker Compose

Introduction In this gist, we will quickly try to spin Elastic stacks with Docker containers. We are going to use docker-compose. You can learn more about Docker & Docker Compose, Which will help you to understand the flow. Prerequisite Tested on the below configuration. docker:Docker version 20.10.16, build aa7e414 docker-compose:Docker version 20.10.16, build aa7e414 Cluster This setup will include Elasticsearch Kibana Logstash APM Setup Clone repo: git clone https://github.com/ashishtiwari1993/elastic-docker.git cd elastic-docker Make changes in .env file. ...

June 8, 2022 · 1 min · 186 words · Ashish Tiwari
Parsing Custom log format to the Elasticsearch

Parsing Custom log format to the Elasticsearch

Introduction As a developer, you need to log everything it may be info, error or debug logs, etc. There are multiple types of log formats like Common log, JSON log, etc. and there are already solutions available in an elastic stack like filebeat to read JSON logs and push them to elasticsearch. There can be cases where you need to log the data according to your convenience which will not be any standard log format. Or sometimes you just need to dump the log in an unstructured way but you need to have it in a structured format if you want to analyze those. ...

April 29, 2022 · 6 min · 1208 words · Ashish Tiwari
Searcy As You Type

[Part -1] Search as you type

Introduction In this blog, we will try to understand how “Search as you type” works and Quickly setup one demo using some sample data. You must have seen various websites like eCommerce, food apps, etc. where you just start typing & simultaneously relevant options start displaying as suggestions and autocomplete. We will try to achieve somewhat the same feature. Search as you type Elasticsearch gives this specific mapping type which you can simply set to a specific field where you want to perform this kind of search. ...

March 18, 2022 · 7 min · 1335 words · Ashish Tiwari
devops conf 2022 cover pic

Parse custom logs in Elasticsearch using grok_pattern

Introduction In the talk, Quickly showed how you can use the metricbeat to check system health. With a few clicks, you can start monitoring your infra. Another demo shows, How you can parse your custom unstructured logs to Elasticsearch. There is some utility already available for predefined logs format like json, apache, nginx and system logs etc. But if you have different requirement where you need to parse a different types of log format , You can parse using Grok processor. ...

March 6, 2022 · 1 min · 117 words · Ashish Tiwari
azure conf cover pic

Deploy Elasicsearch on Azure cloud

Introduction What this talk is all about ? The purpose of the talk is to give a short overview of Elastic solutions & Elastic stacks. In the demo shown, how you can deploy elasticsearch instance on Microsoft Azure. Also, it gives an idea to use the elastic cloud to manage the elasticsearch instance which deployed on the Azure cloud. You can also create deployment on elastic cloud (cloud.elastic.co). In the demo, Successfully shipped the metric data of the local system (my MacBook) to the newly deployed elasticsearch instance and explored the dashboard on kibana. ...

January 29, 2022 · 1 min · 112 words · Ashish Tiwari
go ship logs to ELK flow

Shipping Golang logs with ELKB stack

Goal of this blog In this blog, I am going to show you how easily we can write logs to the files in Golang. As well as we are going to store all logs on elasticsearch with EKB (Elasticsearch, Kibana, Beats). Why ELKB stack ? Logs are very important for debugging, reporting, insights etc. In today’s tech world, We uses multiple cloud servers, private servers etc. Which consist of lots of different applications, scripts, programs, daemons, services and they generate their logs too. It is very difficult to go to each server and check all log files in case of debugging or to generate any insights or reporting. ...

June 6, 2020 · 6 min · 1070 words · Ashish Tiwari

How to scale with massive update queries in Elasticsearch?

Introduction What this talk is all about? We recently moved from MySQL to Elasticsearch where we got a direct 10x - 15x boost in our performance. We came up with unique use cases of heavy updates in Elasticsearch. That been challenging but yes currently Our Elaticsearch handling 200 million requests per day very efficiently. Our WRITE consist of the partial update, update with script conditions and of course simple indexing. ...

December 8, 2019 · 1 min · 141 words · Ashish Tiwari

Elasticsearch Exceptions & Challenges

Below are some challenges & exceptions faced while setting up Elasticsearch. I just shared my experience and learning. Please correct me, If you guys feel somewhere i got wrong OR You can contribute if you have any experiences . Will keep update this gist. Every use case having different solutions. You can try accordingly.

December 3, 2019 · 1 min · 54 words · Ashish Tiwari