PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Friday the 23rd of March, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[11:28:46] <sbbbm> Hey guys, I'm using mongodb for a web database (for a blog). It could be I'm in the wrong channel but I'm not sure. Anyways the issue is that the content that gets put into the mongodb is not stored as multiple lines
[11:28:48] <sbbbm> https://imgur.com/a/CQeB2
[11:28:58] <sbbbm> I don't really know how to describe it so I added an image
[11:29:04] <sbbbm> because I don't know what to Google
[11:33:09] <Derick> I think that has little to do with MongoDB, but rather with your input/output routines
[11:35:13] <sbbbm> ok. I was trying to figure out if I could find the data inside the mongodb but I donno how to query it out lol
[11:35:30] <sbbbm> ok well I'll try another channel, thanks anyways :)
[11:39:10] <Derick> it's not the storing and querying part that you're getting wrong I think
[13:37:28] <MastDickerson> problem: want to update 10 million docs in one collection changing a field value to true. anyway to do this with a mongodb command that won't lockup the DB?
[13:37:57] <MastDickerson> won't lock it for a noticable time.
[14:39:31] <aFeijo> hi
[14:40:19] <aFeijo> last night, the mongodb collections disapeared from 2 servers and one windows DEV machine. This is so weird. And its not the first time it happens. Not sure what I should look into to fix this... any hints?
[15:27:07] <MastDickerson> aFeijo: check logs or oplog for the drop database operation
[15:32:38] <aFeijo> MastDickerson, I found something, a connection from last night at 01:50 local time (impossible to be from our usage)
[15:32:40] <aFeijo> hacked?
[15:33:36] <aFeijo> I will check the mongodb connection settings, it is probably not restricted to localhost
[15:33:51] <Derick> uh oh :-/
[15:34:02] <aFeijo> but to affect 3 machines? including one that was off? lol
[15:34:30] <Derick> well, if they replicate or copy data...
[15:34:34] <aFeijo> no
[15:34:48] <aFeijo> production, staging, local dev
[15:34:53] <aFeijo> all independant
[15:34:57] <Derick> data doesn't automatically disappear
[15:35:13] <aFeijo> the dev I dont care, nor staging that much, but prod oh hell yeah
[15:35:20] <aFeijo> I will review the settings and firewall
[15:35:27] <Derick> also a good touch point to make sure you have backups
[15:35:27] <aFeijo> thanks for the idea!!
[15:35:51] <aFeijo> yes I do, every 4h
[16:54:32] <ThardusWilson> I'm storing tens of millions of 10 digit numbers that need to be wildcard/pattern searchable. eg - users could search 1*34, and all numbers than contain that pattern anywhere in the 10 digits would be returned. I'm wondering if this is the best document structure for what I'm trying to do: { num: 1234567890, numlast8: 34567890, numlast7: 4567890, numlast6: 567890, numlast5: 67890, numlast4: 7890, numlast3: 890
[16:54:32] <ThardusWilson> }. Would these have to be stored as a string to use $regex? Am I going about this correctly?
[17:56:47] <ironpig> less than optimal question about querying a cluster... if I can use a shard key, like for a once in a year type of query, and I need to query all the shards... how does it work... does mongo go to each shard in order, or does the query happen all the same time ? I'm trying to learn more about how querying a cluster actually works, when there isn't a shard key but I can't really find an answer.
[18:42:30] <EdenTFourth> Is there a specific place to ask Questions about mongodb in javascript/typescript?