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

Service never stop #3520

Open
felipegs opened this issue Jun 29, 2015 · 1 comment
Open

Service never stop #3520

felipegs opened this issue Jun 29, 2015 · 1 comment

Comments

@felipegs
Copy link

I am using Amazon Linux 2015, Logstash 1.5.1 and this configuration file.

input {
   zeromq {
      address => "tcp://127.0.0.1:8006"
      mode => "client"
      topology => "pubsub"
   }
}
filter {
   json {
      source => "message"
      target => "message"
   }
   date {
      match => ["_timestamp", "UNIX_MS"]
      remove_field => ["_timestamp"]
   }
   mutate {
     merge => ["tags", "[_tags]"]
     remove_field => "[_tags]"
   }
   geoip {
      source => "[_origin]"
      target => "_geoip"
   }
   useragent {
      source => "[_userAgent]"
      target => "_parsedUserAgent"
   }
}
output {
  if [_organization] and [_organization][slug] =~ /.+/ and [_api] and [_api][id] {
    elasticsearch {
      index => "events-%{[_organization][slug]}-%{[_api][id]}-%{+YYYYMMdd}"
      document_type => "events"
      template_name => "logstash"
      manage_template => false
      cluster => "elasticsearch_felipe"
    }

    if [_clientApplication] and [_clientApplication][id] {
      http {
        http_method => "put"
        url => "http://localhost:9200/events-%{[_organization][slug]}-%{[_api][id]}-%{+YYYYMMdd}/_alias/events-by-client-app-%{[_organization][slug]}-%{[_clientApplication][id]}-%{+YYYYMMdd}"
        message => '{ "filter" :  { "term" :  { "_clientApplication.id" :  "%{[_clientApplication][id]}"  } } }'
        format => "message"
        content_type => "application/json"
        workers => 2
      }

    }
  }
} 

When I try to stop logstash service sometimes it never dies and sometimes I have this error
logstash-plugins/logstash-input-zeromq#5

@jordansissel
Copy link
Contributor

Is this a separate problem than logstash-plugins/logstash-input-zeromq#5?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants