Git Product home page Git Product logo

Comments (25)

nlloyd avatar nlloyd commented on June 12, 2024

+1

from logstash-forwarder.

winpat avatar winpat commented on June 12, 2024

+1

from logstash-forwarder.

OverlordAlex avatar OverlordAlex commented on June 12, 2024

+1 (Even though this is over a year old)

Some justification for this would be the log-rotations which are stored as a backup, but shouldn't be transmitted

from logstash-forwarder.

alpha01 avatar alpha01 commented on June 12, 2024

^ +1

from logstash-forwarder.

rarruda avatar rarruda commented on June 12, 2024

+1

from logstash-forwarder.

derfred avatar derfred commented on June 12, 2024

+1, would love to see this, because of the log rotation issue

from logstash-forwarder.

gpurrenhage avatar gpurrenhage commented on June 12, 2024

+1
The logstash agent that this is intended to replace supports 'exclude', and it's very useful.

from logstash-forwarder.

hartfordfive avatar hartfordfive commented on June 12, 2024

Considering that I'll most likely need this functionality in the near future, I've started working on this feature. Hopefully I'll have this completed and tested shortly!

from logstash-forwarder.

driskell avatar driskell commented on June 12, 2024

I can see your commit and have a suggestion.

Use filepath.Match to check if a file name matches any exclude pattern.
http://golang.org/pkg/path/filepath/#Match

It'll save doing two deep directory listings (which I think glob does) and it'll prevent race condition where a file appears between generating excluded files list and then doing path glob.

from logstash-forwarder.

hartfordfive avatar hartfordfive commented on June 12, 2024

Thanks for that tip @driskell. I hadn't considered that possibility of a race condition which will most likely happen at some point. I've applied that modification locally and I'll test it shortly before I push the changes.

from logstash-forwarder.

wybczu avatar wybczu commented on June 12, 2024

👍

from logstash-forwarder.

brotbert avatar brotbert commented on June 12, 2024

👍

from logstash-forwarder.

goerge avatar goerge commented on June 12, 2024

+1

from logstash-forwarder.

khoamisfit avatar khoamisfit commented on June 12, 2024

+1

from logstash-forwarder.

leedm777 avatar leedm777 commented on June 12, 2024

👍

from logstash-forwarder.

sshunt avatar sshunt commented on June 12, 2024

++

from logstash-forwarder.

phunqe avatar phunqe commented on June 12, 2024

Awesome addition, was just looking for this. Eagerly awaiting a merge :)

from logstash-forwarder.

mholmbergC avatar mholmbergC commented on June 12, 2024

+1

from logstash-forwarder.

nelsonauner avatar nelsonauner commented on June 12, 2024

👍

from logstash-forwarder.

rmoff avatar rmoff commented on June 12, 2024

It's worth noting that some simple exclusions can be done with a glob regex, detailed here https://blog.vladionescu.com/excluding-from-a-path-glob/

from logstash-forwarder.

hartfordfive avatar hartfordfive commented on June 12, 2024

@rmoff Thanks for that example, I guess it can also be accomplished with that query. Keep in mind if you have files that you don't want indexed or that aren't necessary, then they shouldn't be sent to Logstash to begin with. No point in having unused data being processed by Logstash or stored by Elasticsearch.

from logstash-forwarder.

kylekrall avatar kylekrall commented on June 12, 2024

+1

from logstash-forwarder.

jaynefox avatar jaynefox commented on June 12, 2024

+1

from logstash-forwarder.

gibre avatar gibre commented on June 12, 2024

big +1

from logstash-forwarder.

jordansissel avatar jordansissel commented on June 12, 2024

Thanks for helping make logstash-forwarder better!

Logstash-forwarder is going away and is replaced by https://github.com/elastic/filebeat/. If this is still an issue with filebeat, would you mind opening a ticket there?

from logstash-forwarder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.