Archives mensuelles : mars 2021

Regex (Java, Bash…)

Greedy patternPart(.*) is greedy Greedy consumes the maximum of the input that matches String methodFullName = "foo.bar.foobar.Foox.doFoo"; Pattern pattern = Pattern.compile("(.*)\\.(.*)$"); Matcher matcher = pattern.matcher(methodFullName); if (matcher.matches()) { String className = matcher.group(1); String methodName = matcher.group(2); System.out.println(className + "!" + … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Kibana

Kibana queries and filters Location Discover page. Basic Syntax The search field on the discover page provides a way to query in a selected time frame. And we have a filter field to apply boolean operators, wildcards, and field filtering. … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Filebeat 7

Filebeat Commandline Filebeat commands run Runs Filebeat. This command is used by default if you start Filebeat without specifying a command. setup Sets up the initial environment, including the index template, ILM policy and write alias, Kibana dashboards (when available), … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

ELK with Docker

General infos Official Elastic docker registry : docker.elastic.co Web site : https://www.docker.elastic.co Known Errors ELK Problem : VM’s max mnumber of memory map too low : Symptom : Elasticsearch container fails at startup with the error message : ERROR: [1] … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

install and update docker

Components to install/upgrade – docker-ce – docker-ce-cli – containerd.io Update docker version 2 solutions : 1) using the ubuntu repository if the available versions look suitable. Find available version for docker-ce : apt-get list | grep docker-ce Upgrade it : … Continuer la lecture

Publié dans Non classé | Laisser un commentaire