Open jsvd opened 9 years ago
We could create a plugin for this indeed.
+1
+1
This is currently under development : https://github.com/SemmLille/logstash-input-LDAPSearch
is it based on the same code base or are the same people involved? if so I could close this
I started with this code but i had to modify it to return specific attributs. I just start today and I have some trouble with bundle install.
:/opt/logstash-1.5.0/logstash-input-LDAPSearch# bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. There was a NoMethodError while loading logstash-input-LDAPSearch.gemspec: undefined method `metadata=' for #Gem::Specification:0x7fb7e5253740 from /opt/logstash-1.5.0/logstash-input-LDAPSearch/logstash-input-LDAPSearch.gemspec:20
If you have some idea...
Thanks
I found a solution to solve my problem and run bundle install. metadata appear only with ruby 2.. So to install it on debian, i used rvm.
#gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
#curl -sSL https://get.rvm.io | bash -s stable --ruby
and after, to use it :
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
@ptitloup I see that you have published this plugin to rubygems. Did you want it to be a part of the logstash-plugins repository? No worries if you don't. If you do, you can even remain the project maintainer if you want.
Please let us know.
Hello, Yes, why not, with a great pleasure. Thanks for proposal Ptitloup
Le 11/03/2016 18:27, Aaron Mildenstein a écrit :
@ptitloup https://github.com/ptitloup I see that you have published this plugin to rubygems. Did you want it to be a part of the logstash-plugins https://github.com/logstash-plugins repository? No worries if you don't. If you do, you can even remain the project maintainer https://www.elastic.co/guide/en/logstash/2.2/community-maintainer.html if you want.
Please let us know.
— Reply to this email directly or view it on GitHub https://github.com/elastic/logstash/issues/2523#issuecomment-195466201.
Signature Nicolas CAN
Nicolas CAN Ingénieur développement et intégration d'application Responsable informatique documentaire Service WEB-ENT - Centre de Ressources Informatiques Tel : (+33) 03 20 33 60 73 Courriel : nicolas.can@univ-lille1.fr mailto:nicolas.can@univ-lille1.fr
université lille1 sciences et technologie http://www.univ-lille1.fr
Université de Lille, Sciences et Technologies Service Commun de Documentation - Bat. A5 Boulevard Paul Langevin 59655 Villeneuve d'Ascq Cedex
Has this project became part of logstash-plugins? I could not find it there. Is there by any chance some work that could be done?
@sok-pomaranczowy if you'd like to adopt / maintain the plugin that'd be awesome. @acchen97 would be the one to talk to about that.
@andrewvc thanks. perhaps I'd be interested but I need to look at the code first and read your guide to contributing. This is the repo we would be talking about? https://github.com/SemmLille/logstash-input-LDAPSearch
@sok-pomaranczowy that link is correct, but the plugin is quite old at this point and would require quite a bit of change. What use case were you looking to conduct here? Is it to monitor the LDAP change log?
Im sorry for the late reply. I wanted to use it to implement search on my LDAP instance by doing LDAP->Logstash->Elasticsearch. Seeing that it is not maintained I thought it would be a great chance to get into OSS with both something small and useful.
Just to add a similar but distinct use case for an LDAP enrichment filter into this idea because there's commonality and room for code sharing. There are two cases:
I think the 2nd use case can also be very valuable given logs are often filled with unfriendly identifiers (e.g. Active Directory/Windows has an SID) meanwhile the search use case might want to target a real username...
Both the input plugin and filter plugin could borrow from or leverage the same underlying ruby ldap query component that should hopefully include a caching mechanism to improve performance.
By the way, this looks promising: https://github.com/Transrian/logstash-filter-ldap (haven't tested it out yet). Important features, like an in-memory cache suggest the authors did it properly to handle fairly high load and improve performance.
Migrated from: https://logstash.jira.com/browse/LOGSTASH-1772