I hereby claim:
- I am inqueue on github.
- I am inqueue (https://keybase.io/inqueue) on keybase.
- I have a public key ASCyxhhPiLRhxf3PE5riVWdmlA82DFGNxDBt-AtVgdoDzQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
PUT _xpack/watcher/watch/purge_indices | |
{ | |
"trigger": { | |
"schedule": { | |
"interval": "24h" | |
} | |
}, | |
"input": { | |
"search": { | |
"request": { |
### Checking and verification ### | |
# Check a certificate signing requested | |
openssl req -text -noout -verify -in node_sign_request.csr | |
# Check a private key | |
openssl rsa -in node.key -check | |
# Check a certificate | |
openssl x509 -in node.crt -text -noout |
DELETE security-logs | |
POST security-logs/event/_bulk | |
{"index":{}} | |
{ "event": "login", "user": "aardvark", "password": "squishy"} | |
{"index":{}} | |
{ "event": "login", "user": "squishy", "password": "aardvark"} | |
{"index":{}} | |
{ "event": "access", "application": "nginx", "ip": "10.1.1.1"} |
PUT _ingest/pipeline/truncate-field | |
{ | |
"description": "Use the Script processor to truncate a field to 10 characters", | |
"processors": [ | |
{ | |
"script": { | |
"inline": "ctx.foo = ctx.foo.substring(0, (int) Math.min(10, ctx.foo.length()))" | |
} | |
} | |
] |
PUT _template/default | |
{ | |
"order": 0, | |
"template": "*", | |
"settings": { | |
"index": { | |
"number_of_shards": "2", | |
"number_of_replicas": "1" | |
} | |
} |
input { | |
stdin { | |
codec => json {} | |
} | |
} | |
filter { | |
clone { | |
clones => ['cloned_test_event'] | |
} |
GET metricbeat/_search | |
{ | |
"query": { | |
"bool": { | |
"filter": { | |
"bool": { | |
"should": [ | |
{"term": {"metricset.name": {"value": "cpu"}}}, | |
{"term": {"metricset.name": {"value": "load"}}} | |
] |
{ | |
"trigger": { | |
"schedule": { | |
"interval": "1m" | |
} | |
}, | |
"metadata": { | |
"skip_hosts": [""], | |
"window_size": "2m", | |
"collection_scope": "48h" |
{ | |
"metadata": { | |
"used_percent": 0.9, | |
"email_to": "email@domain.tld" | |
}, | |
"trigger": { | |
"schedule": { | |
"interval": "5m" | |
} | |
}, |