Skip to content

Instantly share code, notes, and snippets.

@TomonoriSoejima
TomonoriSoejima / cold.md
Last active January 19, 2023 01:34
ilm.md
  • testing cold thing
PUT _ilm/policy/test-cold-policy
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0s",
 "actions": {

usage

Update Cluster Settings to include logger.{LOGGER_PACKAGE_HERE} set to [TRACE, DEBUG, INFO, WARN, ERROR, NULL].

example

For org.elasticsearch.xpack.watcher, add watcher debug logging via:

PUT _cluster/settings
@TomonoriSoejima
TomonoriSoejima / recovery
Created September 13, 2021 02:23
recovery
GET _cat/recovery?active_only=true&v=true&h=index,shard,files_percent,bytes_percent,source_node,target_node
@TomonoriSoejima
TomonoriSoejima / ECEAnalyzer.md
Last active November 1, 2020 06:45
run ECEAnalyzer.jar faster
java -Deditor=code -jar ECEAnalyzer.jar $(ls -1 | grep --color=never ece_diag | grep -v tar.gz | tr '\n' ' ')

find logstash-7.[456].0/vendor/bundle | grep Gemfile | awk -F '/' '{print $1, $7 }' | sort -k2

@j-tim
j-tim / docker-compose.yml
Last active June 26, 2023 16:01
Elasticsearch 7.x Single Cluster Node for local development including Kibana
version: '3.7'
services:
# Elasticsearch Docker Images: https://www.docker.elastic.co/
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.0
container_name: elasticsearch
environment:
- xpack.security.enabled=false
@hideojoho
hideojoho / Vagrant_elasticsearch_kibana_2019.md
Last active June 26, 2021 16:59
How to set up a virtual machine with Elasticsearch and Kibana using Vagrant (2019)

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • About 1GB of diskspace
  • 1-2 hours of time (depends on your network speed)

Environments

  • MacOSX 10.14.2
  • VirtualBox 6.0.2
  • Vagrant 2.2.3
@heiswayi
heiswayi / repo-reset.md
Created February 5, 2017 01:32
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@hideojoho
hideojoho / Vagrant_elasticsearch_kibana.md
Last active June 28, 2021 08:00
How to set up a virtual machine with Elasticsearch and Kibana using Vagrant. See https://gist.github.com/hideojoho/a7f8fa864a250380b0e78c5fcbc4d52e for 2019 version.

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • About 1GB of diskspace
  • 1-2 hours of time (depends on your network speed)

Environments

  • MacOSX 10.11.6
  • VirtualBox 5.1.10
  • Vagrant 1.8.7