Uploaded image for project: 'logstash'
  1. LOGSTASH-1744

Logstash doesn't change year var after 20131231.

    Details

      Description

      Hi,

      I'm running logstash 1.2.1 to fill elasticsearch indexes rotating daily the name.

      The problem is that the index that should be named 2014.01.01 is 2013.01.01 and so on. There are no problem with months and days.

      After restarting logstash, the index was created with the correct name.

      Here is the config:

      input {
              file {
                      path => ["/var/log/dns/*.log"]
                      sincedb_path => "/usr/local/logstash/sincedb_logs_dns"
                      start_position => "beginning"
                      type => "dns_log"
              }
      }
      [...]
      output {
              elasticsearch {
                      node_name => "Syslog DNS"
                      index => "dns-%{+YYYY.MM.dd}"
                      cluster => "syslog"
                     bind_host => "elastic.server.com"
              }
      }
      

        Gliffy Diagrams

          Attachments

            Issue links

              Activity

                People

                • Assignee:
                  Logstash Developers (Inactive)
                  Reporter:
                  Andres
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: