Skip to content
Discussion options

You must be logged in to vote

Yes, the elasticsearch-logger plugin can concatenate the current date to the index. You can use Nginx variables to achieve this. For example, you can set the field.index attribute to include the current date:

{
    "plugins": {
        "elasticsearch-logger": {
            "endpoint_addrs": ["http://127.0.0.1:9200"],
            "field": {
                "index": "services-$time_iso8601",
                "type": "collector"
            },
            "auth": {
                "username": "elastic",
                "password": "123456"
            },
            "ssl_verify": false,
            "timeout": 60,
            "retry_delay": 1,
            "buffer_duration": 60,
            "m…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@dosubot
Comment options

@myhgc
Comment options

@dosubot
Comment options

@myhgc
Comment options

@dosubot
Comment options

Answer selected by guoqqqi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant