/Seriloger

Serilog with ELK Stack

Primary LanguageC#

Seriloger

Serilog with ELK Stack

Running the project:

  1. Install Java JDK http://www.oracle.com/technetwork/java/javase/downloads/index.html -> jdk-10_windows-x64_bin.exe
  2. Install Elastic Search https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html -> https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.3.msi
  3. Check, if service is running: http://localhost:9200/
  4. Install Kibana https://www.elastic.co/guide/en/kibana/current/windows.html -> https://artifacts.elastic.co/downloads/kibana/kibana-6.2.3-windows-x86_64.zip
  5. Unzip and run Kibana .\bin\kibana.bat -> http://localhost:5601
  6. Install Kibana as a Service:
    sc create "ElasticSearch Kibana 6.2.3" binPath= "C:\kibana-6.2.3-windows-x86_64\bin\kibana.bat" depend= "Elasticsearch"
  7. To delete a Service:
    sc delete "ElasticSearch Kibana 6.2.3"

Elastic Search disk usage:

In config C:\ProgramData\Elastic\Elasticsearch\config\elasticsearch.yml add following lines:

cluster.routing.allocation.disk.threshold_enabled: true  
cluster.routing.allocation.disk.watermark.flood_stage: 200mb  
cluster.routing.allocation.disk.watermark.low: 500mb  
cluster.routing.allocation.disk.watermark.high: 300mb