Last active
November 29, 2018 10:50
-
-
Save dbt4u/121eeea211e30279102c0e5b5b6f54c2 to your computer and use it in GitHub Desktop.
ELK Snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET _cluster/health?pretty=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT _ingest/pipeline/set-test | |
{ | |
"description": "This is a first test", | |
"processors": [ | |
{ | |
"set": { | |
"field": "Hello", | |
"value": "World" | |
} | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT _ingest/pipeline/talogrok | |
{ | |
"description": "Grok talo Messages", | |
"processors": [ | |
{ | |
"grok": { | |
"field": "message", | |
"patterns": [ | |
"%{DATA:taloTimestamp}\|%{DATA:taloSeverity}\|%{DATA:taloMessagekey}\|%{GREEDYDATA:taloTail}", | |
""] | |
}, | |
"set": { | |
"field": "Pipeline", | |
"value": "talogrok" | |
} | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET _ingest/pipeline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET _nodes/stats/thread_pool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET _nodes/settings?pretty=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST _reindex | |
{ | |
"source": { | |
"index": "fo-prod-2017.04.28" | |
}, | |
"dest": { | |
"index": "fo-prod-fix-2017.04.28", | |
"pipeline": "counter-string" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment