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

Getting data from system collections #8

Open
RoeiA opened this issue Aug 16, 2015 · 3 comments

Comments

@RoeiA
Copy link

commented Aug 16, 2015

Hello,

I've been trying out this plugin and it's great!
I'd like to get data from a system.profile collection in order to create an operation analysis dashboard in Kibana.
When I try to do that, logstash gives me this message:
D, [2015-08-16T12:17:14.914000 #30642] DEBUG -- : MONGODB | COMMAND | namespace=collection1.$cmd selector={:listCollections=>1, :cursor=>{}, :filter=>{:name=>{"$not"=>/system.|$/}}} flags=[] limit=-1 skip=0 project=nil | runtime: 32.0001ms

So system collections are filtered out. The code responsible for that is in the ruby mongo driver:
https://github.com/mongodb/mongo-ruby-driver/blob/15f5707794e852a8124d8d9d89019223e0183ebe/lib/mongo/operation/commands/list_collections.rb#L49

Is there any way to get around that in your plugin?

Thanks.

@phutchins

This comment has been minimized.

Copy link
Owner

commented Aug 19, 2015

Thanks for the input @RoelA

I see exactly what you mean. I'm contemplating a way to get around this now...

@phutchins

This comment has been minimized.

Copy link
Owner

commented Dec 16, 2015

@RoeiA I haven't had much of a chance to take a stab at this. Do you have any ideas on the best way we could accomplish this? I'd be glad to look at a merge request and help you work through it.

@oiahoon

This comment has been minimized.

Copy link

commented Apr 14, 2018

so? is there any work around for system.profile, or maybe we should build a exec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.