Category : elk

Here it is my docker-compose.yml file version: ‘3.2’ services: elasticsearch: build: context: elasticsearch/ args: ELK_VERSION: $ELK_VERSION volumes: – type: bind source: ./elasticsearch/config/elasticsearch.yml target: /usr/share/elasticsearch/config/elasticsearch.yml read_only: true – type: volume source: elasticsearch target: /usr/share/elasticsearch/data ports: – "9200:9200" – "9300:9300" environment: ES_JAVA_OPTS: "-Xmx256m -Xms256m" ELASTIC_PASSWORD: changeme # Use single node discovery in order to disable production mode ..

Read more

I am using logging with elk but then my logging in console is not visible any more because logs are forwaded. Can I somehow retain logs and see them in console too? webserver: image: nginx:alpine container_name: nginx-with-syslog ports: – "80:80" logging: driver: syslog options: syslog-address: "udp://$IP_LOGSTASH:5000" syslog-tag: "nginx-with-syslog" Source: Docker..

Read more

My ELK is running inside the Docker Container . But I am getting an error of Elasticsearch is unreachable or down. My elastic is up .What could be the reason for it . elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:6.8.9 environment: – "ES_JAVA_OPTS=-Xms1g -Xmx1g" – logger.level=DEBUG volumes: – /opt/myservice/data/elasticsearch:/usr/share/elasticsearch/data – /opt/myservice/config/elasticsearch/config:/usr/share/elasticsearch/config – /opt/myservice/logs/elasticsearch:/usr/share/elasticsearch/logs ports: – 9200:9200 user: ${USER_ID} kibana: ..

Read more

I am using ELK 6.8.9 all configuration is in my docker-compose file. It was working fine but when suddenly I am getting an error of org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed or org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized]; This is how I configure ELK elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:6.8.9 environment: – "ES_JAVA_OPTS=-Xms1g -Xmx1g" volumes: – /opt/services/data/elasticsearch:/usr/share/elasticsearch/data ports: ..

Read more