Skip to content

Instantly share code, notes, and snippets.

@knight76
Created September 25, 2019 08:30
Show Gist options
  • Save knight76/e0165ccbe3ee2e9e4b14be33136382f7 to your computer and use it in GitHub Desktop.
Save knight76/e0165ccbe3ee2e9e4b14be33136382f7 to your computer and use it in GitHub Desktop.
elasticsearch
curl -X PUT "http://localhost:9200/_ingest/pipeline/reqlog-monthly-index" -H 'Content-Type: application/json' -d'
{
"description": "monthly index naming for reqlog",
"processors" : [
{
"date_index_name" : {
"field" : "date1",
"index_name_prefix" : "reqlog_",
"index_name_format" : "yyyy-MM",
"date_formats" : [ "UNIX_MS" ],
"date_rounding" : "M",
"timezone": "+09:00"
}
}
]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment