Prometheus vs ElasticSearch. Which is better for container and server monitoring? [closed]

ELK is a general-purpose no-sql stack that can be used for monitoring. We’ve successfully deployed one on production and used it for some aspects of our monitoring system. You can ship metrics into it (if you wish) and use it to monitor them, but its not specifically designed to do that. Nor does the non-commercial … Read more

Elasticsearch: nested object under path is not of nested type

TLDR: Put “type”: “nested”, in your nested type. Say we have a normal type, and another type nested in it: { “some_index”: { “mappings”: { “normal_type”: { “properties”: { “nested_type”: { “type”: “nested”, “properties”: { “address”: { “type”: “string” }, “country”: { “type”: “string” } } }, “first_name”: { “type”: “string” }, “last_name”: { “type”: … Read more

Fluentd vs Kafka

kafka provides publish/subscribe messaging as a distributed commit log. Usually you install kafka on each host where you need to produce some data to be forwarded somewhere else and all those hosts will together form a cluster. The good thing here is that if for some reason network connectivity becomes unstable or goes down, your … Read more

Can I create a document with the update API if the document doesn’t exist yet

This is doable using the update api. It does require that you define the id of each document, since the update api requires the id of the document to determine its presence. Given an index created with the following documents: PUT /cars/car/1 { “color”: “blue”, “brand”: “mercedes” } PUT /cars/car/2 { “color”: “blue”, “brand”: “toyota” … Read more

Update max_map_count for ElasticSearch docker container Mac host

On Docker Toolbox If you are in docker toolbox try the docker client from terminal and then make the configs: docker-machine ssh sudo sysctl -w vm.max_map_count=262144 exit On Docker For Mac: The vm_max_map_count setting must be set within the xhyve virtual machine: $ screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty If it asks you for a username and passwordLog in … Read more

Is there a way to make elasticsearch case-insensitive without altering the existing documents?

By Default, the fields are case-insensitive because of the mapping elastic applied. Try below: PUT myindex/doc/1 { “name”:”TEST” } GET myindex/_mapping It should return : { “myindex”: { “mappings”: { “doc”: { “properties”: { “name”: { “type”: “text”, “fields”: { “keyword”: { “type”: “keyword”, “ignore_above”: 256 } } } } } } } } Now … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)