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

codec.multiline loses log #90

Closed
woshihaoren opened this issue Dec 27, 2015 · 1 comment
Closed

codec.multiline loses log #90

woshihaoren opened this issue Dec 27, 2015 · 1 comment

Comments

@woshihaoren
Copy link

THis is cconfiguration

input {
    file {
        path => "/opt/app/tomcat/*/logs/*.log"
        codec => multiline {
            pattern => "(^%{LOGLEVEL})"
            negate => true
            what => "previous"
        }
    }
}

Because multiline is previous, last log doesn't collection,
It's waiting for the next one to start with %{LOGLEVEL}.

When I kill logstash,Then loses last group log.

@guyboertje
Copy link
Contributor

This is a known problem. It will be fixed in a feature I'm calling auto-flush. We will release this in the next LS 2.X version early Jan 2016.

guyboertje added a commit to guyboertje/logstash-input-file that referenced this issue Dec 29, 2015
begin to add ignore_after config option
depends on filewatch 0.6.8

add timed_out method to TailListener and specs

revert Gemfile changes for PR

split and rename ignore_after option, update gem deps to published ver.

bump ver, make suggested review changes and improve spec reliability

update changelog

Fixes logstash-plugins#81, Fixes logstash-plugins#89, Fixes logstash-plugins#90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants