Now i will show you the step by step procedure to make configure elastc search,Kibana Dashboard and Fluentd Configurations:
1] Elastic Search :
1] Download the Elastic search from the below website :
https://www.elastic.co/downloads/elasticsearch
2] Goto particular location Winows/Unix extract/Unzip the software package
C:\opt\elasticsearch-7.6.1
3] Set the Environment Variable in the System
ELASTIC_SEARCH_HOME=C:\opt\elasticsearch-7.6.1
Update the Path Variable till “Bin”
4] Open the Command Prompt and Type the below command:
“elasticsearch.bat”
5] Once you run the command elastic search db start accepting the data
Listening ports : 127.0.0.1:9200 and 127.0.0.1:9300
Note : Prerequisite – JDK 1.8 or Higher version should be installed in the machine and Set the JAVA_HOME in the Environment variable.
2] Kibana Dashboard:
1] Download the Kibana from the below website Link :
https://www.elastic.co/downloads/kibana
2] Goto particular location Winows/Unix extract/Unzip the software package
C:\opt\kibana-7.6.1-windows-x86_64
3] Set the Environment Variable in the System
KIBANA_HOME=C:\opt\kibana-7.6.1-windows-x86_64
Update the Path Variable till “Bin”
4] Open the Command Prompt and Type the below command:
“kibana.bat”
5] Once you run the command Kibana dashboard starts accepting the data
Listening ports : 127.0.0.1:5601
Note : Prerequisite – JDK 1.8 or Higher version should be installed in the machine and Set the JAVA_HOME in the Environment variable.
2] FluentD:
1] Download the FluentD from the below website Link :
https://www.fluentd.org/download
2] Goto particular location Winows/Unix extract/Unzip the software package
C:\opt\td-agent
3] Set the Environment Variable in the System
FLUENTD_HOME=C:\opt\td-agent
Update the Path Variable till “Bin”
4] Open the Command Prompt and Type the below command:
“fluentd -c etc\td-agent\td-agent.conf”
5] Once you run the command fluentD agent start farwarding the data
Listening ports : 127.0.0.1:9200 and 127.0.0.1:9300
Note : Prerequisite – JDK 1.8 or Higher version should be installed in the machine and Set the JAVA_HOME in the Environment variable.
2] Java Class for Application:
Now you can write your log and configure the Log4j and Sl4j in the projects and describe in the fluentdb Logger Class
I am explain the sample code for java to fluent db connection in the next article.