Skip to content

Instantly share code, notes, and snippets.

@dbt4u
Last active November 29, 2018 10:50
Show Gist options
  • Save dbt4u/121eeea211e30279102c0e5b5b6f54c2 to your computer and use it in GitHub Desktop.
Save dbt4u/121eeea211e30279102c0e5b5b6f54c2 to your computer and use it in GitHub Desktop.
ELK Snippets
GET _cluster/health?pretty=true
PUT _ingest/pipeline/set-test
{
"description": "This is a first test",
"processors": [
{
"set": {
"field": "Hello",
"value": "World"
}
}
]
}
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"
}
}
]
}
GET _nodes/stats/thread_pool
GET _nodes/settings?pretty=true
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