Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'date_math_index_name' processor #17814

Closed
martijnvg opened this issue Apr 18, 2016 · 0 comments
Closed

Add 'date_math_index_name' processor #17814

martijnvg opened this issue Apr 18, 2016 · 0 comments
Assignees
Labels
:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >feature

Comments

@martijnvg
Copy link
Member

We should add a processor that overrides / sets the index based on a timestamp / date field. This is useful for event ingestion where the actual date of an event is inside the source.

This processor should utilize the date math index name support:
https://www.elastic.co/guide/en/elasticsearch/reference/master/date-math-index-names.html

The processor should look something like this:

PUT /_ingest/pipeline/test
{
  "processors" : [
    {
      "date_math_index_name" : {
        "timestamp_field" : "timestamp",
        "optional_date_format: ....,
        "index_name_template" : "events-{{date}}" // 'date' is the formatted date string
      }
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >feature
Projects
None yet
Development

No branches or pull requests

1 participant