[00:12:48] <Ned_> We have a replicaset in MMS that doesn't have automation. We checked the box to enable automation, and we just get a blank page (and nothing happens). Anyone know what might be up there?
[03:28:23] <joannac> Ned_: You should just ask your question.
[03:29:11] <Ned_> 12:09 < Ned_> We have a replicaset in MMS that doesn't have automation. We checked the box to enable automation, and we just get a blank page (and nothing happens)
[03:29:15] <Ned_> 12:10 < Ned_> We have a replicaset in MMS that doesn't have automation. We checked the box to enable automation, and we just get a blank page (and nothing happens). Anyone know what might be up there?
[04:24:56] <_sillymarkets> Hey, I have a question regarding "bulk_write" & the ruby driver. The mongodb/ruby-driver page on Git with examples doesn't seem to work
[04:25:39] <_sillymarkets> I get undefined method "initialize_ordered_bulk_op"
[04:26:06] <_sillymarkets> client[:collection].initialize_ordered_bulk_op gives me undefined method
[05:01:20] <_sillymarkets> hm, how to bulk_write {:insert_one => array_of_hashes }. If I iterate through that array to get each hash inserted, its not really a bulk_write. It's the same as .insert_one(:params)
[05:02:37] <_sillymarkets> is what I'm attempting even possible?
[05:27:52] <_sillymarkets> hm, so i figured it out
[05:28:37] <_sillymarkets> but .bulk_write([ {:delete_many => array}) still seems slow and one by one to the db
[05:41:38] <mbuf> is there a way to test cloud.mongodb.com API keys with curl?
[05:57:00] <mbuf> should /data/db be located at /, or should it be relative to a mongo installation directory?
[06:26:55] <Boomtime> mbuf: are you asking about the actual path "/data/db" (this is a full path as is), or do you asking about best practices for determing what to use for a dbpath?
[06:27:29] <Boomtime> wow.. lots of mistakes in that sentence, please adjust as appropriate
[06:34:56] <mbuf> Boomtime, best practices; running mongodb inside a Docker container
[07:16:37] <Boomtime> mbuf: sorry for the delay, i think it's a very subjective question - depending on certain surrounding conditions you may be able to make the answer more objective though
[07:16:39] <mbuf> Boomtime, never mind, used /etc/mms/data/db
[07:17:22] <mbuf> does anyone know how I can check that the mms-agent is running on a mongodb instance?
[07:50:18] <mbuf> Boomtime, Eureka! the key was incorrect. I see some logs, but, no graphs or anything
[07:55:52] <Boomtime> mbuf: good to hear, though i'm still confused why it doesn't show up in ps
[08:34:53] <mbuf> are there any screenshots on what to expect in the mongodb CloudManager on how it displays the data received by the MMS agents?
[08:57:48] <mbuf> how do I remove the monitoring and backup agent that got installed from the UI? I started to configure it, but, it automatically installed it
[09:13:46] <KekSi> how do i allow a user with the role userAdminAnyDatabase on admin to access config?
[09:14:28] <KekSi> i get "errmsg" : "not authorized on config to execute command { dbstats: true }" , "code" : 13
[09:26:15] <mbuf> the automation agent and monitoring agent are two different MMS agents?
[09:41:36] <mbuf> is there a way to configure the automation agent to also be used for monitoring and backup? I deploy the agent using Ansible
[10:06:58] <mbuf> the MMS agent must not be run on the same Docker container where the mongod server is running?
[10:07:16] <mbuf> it can be run on the host, instead?
[10:28:13] <KekSi> btw: how do i stop logging this sort of thing: 2015-07-22T10:24:25.875+0000 I SHARDING [Balancer] distributed lock 'balancer/fb58f165dba3:27017:1437468423:1804289383' acquired, ts : 55af6f59721e883cef81ae1e
[11:09:12] <iszak__> I want to get the sum of the occurrence of the first element of a sub-document, I don't think $pop is what I want, nor $first, I tried using .0. but this just gives me an empty array back
[11:44:57] <arussel> is there a way to resume a mongorestore ?
[11:46:40] <KekSi> louie_louiie: thats simply because of the default that doesn't need authorization
[11:53:24] <louie_louiie> @KekSi, true. furthermore the article states some versions are missing the bind_ip 127.0.0.1 in the .conf leaving default users vulnerable to remote access
[12:20:13] <KekSi> yeah but that's mostly because people want to access it from somewhere other than 127.0.0.1 and just take that line out (was like that at my old job aswell)
[12:20:35] <KekSi> they just had it running on a rented vserver like that 8(
[14:22:09] <deathanchor> we usually skip the nicities and just ask questions
[14:22:19] <tgreena> Basically, my question is this: I have logs that I need to input into my MongoDB, these logs contain thousands of rows each. I have currently one 'table' in my database, ( I think it is called a collection in Mongo) and inside that collection, I have just each individual row (Mongo calls them documents I believe)
[14:26:21] <endstille> i've setup a RSysLog Server, running on Debain Jessie
[14:26:21] <endstille> it ran for some time, using mysql, now i added MongoDB because it think it will be much faster
[14:26:21] <endstille> it works fine but i have this one issue: i cannot search "freetext" in my mongoDB. if i search for a specific host Host or something, it works flawlessly, if i search just anything, i can see in HTOP, that at least on CPU jumps to 100% for mongo, until the PHP-Timeout is reached
[14:26:51] <tgreena> deathanchor: I can't rotate the collection out every day since we are looking to archive all these logs so our clients can review the past
[14:27:41] <deathanchor> tgreena: I meant you can rotate them daily so you can archive or move collections overtime easily by time
[14:30:26] <endstille> no i don't work manually in mongo, (yet :) ) i just use rsyslog
[14:31:15] <endstille> http://www.rsyslog.com/ and check it via loganalyzer http://loganalyzer.adiscon.com/
[14:31:56] <deathanchor> sorry, I can only help with direct mongo questions. I don't have time to learn new tools.
[14:33:29] <endstille> no Problem! maybe you can guide me, try the manual search once :)
[14:33:47] <endstille> what is the syntax for db.coll.fin()?
[14:34:20] <endstille> i never worked on any Database, except some simple things using phpmyadmin ;) i'm system administrator
[14:34:33] <deathanchor> use db; then db.collectionname.find({ field : "valueyouwant" })
[14:34:47] <deathanchor> you should do the mongouniversity M102
[14:34:59] <endstille> great, thanks :) i'll try right now!
[14:36:29] <bodisiw> hi all, i have a text index on my field, but for some reason one term in a document doesn't match the document, while the others do... is there any special gotcha i should look for?
[14:36:37] <bodisiw> here's a gist demonstrating my issue https://gist.github.com/noahadler/e04bbacb4b4bab5ee5cb
[14:41:53] <lobmys> Did you add that word after the initial index?
[14:43:31] <bodisiw> lobmys, sorry can you explain? do i need to do something special if i update that field on an existing document?
[14:44:49] <lobmys> bodisiw: I haven't used $search much but I do know that it requires the text index on all the values.
[14:45:12] <lobmys> I'm slightly guessing that if you added the word after the index then it's not searchable.
[14:47:00] <bodisiw> i do ensureIndex({searchText: 'text'}) on the collection... then i figured any documents added or updated after that should get into the index
[15:03:15] <bodisiw> maybe i should just use regex... i don't get any lemma/stem help since it's unsupported language anyway
[15:04:08] <bodisiw> still concerning to see this unexpected behavior...
[15:05:46] <lobmys> I suspect there's a nuance here that's being overlooked.
[15:07:12] <bodisiw> that's fair... i'd like to know! maybe it's been fixed in a newer version (i'm running 2.6.7)
[15:08:18] <lobmys> Heh, as would I. I'll keep poking around to see what I can find.
[15:41:56] <lobmys> bodisiw: I'd suggest asking again - I'm sure someone here with more experience will be able to help you out. I'm also selfish and really want to know what's going on.
[15:42:54] <bodisiw> hi all, i have a text index on my field, but for some reason one term in a document doesn't match the document, while the others do... is there any special gotcha i should look for?
[15:43:00] <bodisiw> here's a gist demonstrating my issue https://gist.github.com/noahadler/e04bbacb4b4bab5ee5cb
[15:45:08] <marshall> i just joined a project, and they're using this query: https://gist.github.com/anonymous/57909a40083c83695e8b. how do I add a clause that excludes all documents in the collection that have `type = coupon_redeemable`?
[15:57:39] <StephenLynx> plus I send some terminals that I don't need to interact to the secondary workspace
[16:02:38] <Cintax> probably stupid question, but how would I go about filtering out a nested document from a query? Because sometimes I want the nested doc, and sometimes I don't
[16:03:17] <StephenLynx> you just use projection of it like any other field.
[16:03:40] <StephenLynx> of even on it's sub-values using dot notation. 'subdoc.value' : 1
[16:07:46] <Cintax> StephenLynx: ah ok, I was reading up on projection but I think I misunderstood it on my first read. Will give it a second look, thanks
[16:24:14] <drhalan> hey all. I am still looking how to store more complex spatial data ona flat 2d index
[16:34:07] <Bradipo> Anyone here use morphia with mongodb? It seems to be making a getMore query that I cannot account for. It is extremely slow, sometimes 10--300 seconds.
[16:35:25] <Bradipo> If I run the same query in the mongo shell, it's fast (like 100ms).
[16:35:44] <Bradipo> So there appears to be a difference in getMore and just a query.
[16:50:42] <deathanchor> Bradipo: that's reading more data from the cursor, in the shell the cursor only shows the first 10 docs I believe
[16:51:31] <Bradipo> Can reading from the cursor be avoided?
[16:51:38] <Bradipo> For example, like perhaps, using asList()?
[16:52:04] <Bradipo> Because apparently when it does this, it incurs huge delays.
[16:52:12] <Bradipo> When it uses the cursor that is.
[16:52:33] <Bradipo> Or is there likely something missing in the database that *should* just work?
[16:52:51] <Bradipo> To make the cursor read more performant.
[16:54:57] <Bradipo> What's odd, also, is that the code doesn't call any of the methods to return data...
[16:55:43] <Bradipo> It uses: for(Result r : query) {}
[16:56:00] <Bradipo> So where exactly does the query actually execute?
[17:55:49] <_ritchie_> anyone here use mongodb with django? I’m looking for help writing html forms for complex mongo documents (e.g. some fields are lists and dicts)
[20:19:17] <polydaic> I'm getting a readonly error while trying to set a Mixed type
[20:19:59] <polydaic> *sub property of a mixed type
[20:20:04] <polydaic> is there any way to prevent this
[21:40:41] <dman777_alter> if db.getProfilingLevel() shows level 2, shouldn't all queries be logged?
[22:58:53] <JuanDaugherty> there are some nice things in mongo
[22:59:49] <Epichero> my query is wrong, i'm using a framework but my problem is my query i think https://gist.github.com/Tyler-Anderson/798aa9e412237a453c35