- mlaunch: fixed parsing of the
mongodversion (#451)
- mgenerate: create operator for binary data (#405)
- mlaunch: added
csrsparameter if version > 3.3 - mlaunch: Allow one node config server with --csrs and make the default be one node (#438)
- mlaunch: added
shardsrvparameter automatically (#430) - mlaunch: fixed
authnot working for replica sets (#380) - mlaunch: Make sure that when CSRS is deployed, --arbiter will not have an affect on it (#418)
- mlaunch: Allow --setParameter options (#445)
- mloginfo: fixed showing the host in
rsstate(#410) - mloginfo: fixed check for WT engine (#426)
- mlaunch: fix bug for CSRS feature that prevents older mlaunch configurations to start (#402)
- mlaunch: support config servers as replica sets (CSRS) (#399, #401)
- mlaunch: fix various
mlaunch listerrors (#396) - fix log file testing errors (#393)
- mplotqueries: pin python-dateutil to version 2.2 because of problems with matplotlib (#377)
- mplotqueries: fixed scaling issues with nscanned/n plots @devkev (#243, #379)
- mlaunch: support for PyMongo 3.x @gormanb (#351)
- better handling of invalid log lines due to line breaks @gianpaj (#375)
- mloginfo: fixed bugs when reading from system.profile collection (#353)
- mloginfo: includes geoNear commands in statistics (#344)
- mgenerate: added more operators, like
$concat,$normal,$zipf(#360) - fixed false positives in the test suite
- mloginfo: storage engine is now listed for log files (#330)
- mplotqueries: x-axis bounds corrected when parsing multiple files (#322)
- mlogfilter: truncated log lines ("too long ...") recognized and parsed as much as possible (#133)
- better cross-platform script support, especially for windows users (#230)
- logging components are updated to match final version of MongoDB 3.0 (#328, #327)
- removed hard dependency on pymongo, only required if mlaunch is used (#337)
- removed deprecated scripts like mlogversion, mlogdistinct (#336)
- command in LogEvent is now always lowercase (#335)
- LogEvent now has writeConflicts property (#334)
- documented numpy minimum version 1.8.0 (#332)
- mtools now understands 2.8 style log format, with severity and components. Added by @jimoleary (#269)
- mlogfilter: added
--command,--planSummary,--componentand--levelfilters and allow multiple values for most filters (#239) - mloginfo: show host information and replica set name if available (#247)
- mloginfo: added new section
--rsinfothat prints replica set config information. Added by @jimoleary (#290) - mloginfo: now includes
countandfindAndModifycommands in the statistics and adds operation column (#310) - mloginfo: version detection works for enterprise edition with SSL. Added by @gianpaj (#289)
- mplotqueries: ability to adjust graphical properties of scatter plots, like opacity, marker size and edge. Added by @devkev (#309)
- mlaunch: legacy mode for adding users with pymongo version < 2.5 (#221)
- mlaunch: named shards now have correct name for single instances (#291)
- mlaunch:
listcommand was broken when other non-mtools instances were running. Added by @devkev (#297) - mlogvis: added options
--no-browserand--outfor mlogvis (#306)
- mlogfilter:
--threadnow also matches "connection accepted" lines for that connection (#218, #219) - mlogfilter: fixed bug that would print milliseconds in timestamp twice in 2.6 format for UTC timezone (#241)
- mlaunch: allow overriding hostname for replica set setup (#256)
- mlaunch: added a
restartcommand (#253) - mlaunch: added
--startuptolistcommand to show all startup strings (#257) - mlaunch: aliased
--verbose(now depricated) as--tags(#257) - mloginfo: added
--rsstateoption to show all replica set state changes in log file. Added by @jimoleary (#228) - mloginfo: fixed issues with 95-percentile calculation. Added by @gianpaj (#238)
- mloginfo: show host name and port if available (#247)
- mloginfo: fixed bug where empty lines can't be parsed (#213)
- mloginfo: show milliseconds for start/end (#245)
- mloginfo: made numpy dependency optional for mloginfo. Added by @brondsem (#216)
- mplotqueries: option to write output to image file instead of interactive mode. Added by @dpercy (#266)
- mplotqueries: show correct timezone for time axis (#274)
- mplotqueries: added option to allow fixing y-axis to specific min/max values (#214)
- added workaround for compile errors with XCode 5.1 / clang 3.4 (#203)
- mlaunch: fixed bug when using
--binarypathand passing arguments through to mongod/mongos (#217) - mlaunch: fixed help text for default username and password (#207)
- mlogfilter: "iso8601-local" timestmap format now working with
--fromand--to(#209) - mplotqueries: fixed bug where "0ms" lines couldn't be plotted with durline plots (#208)
- mgenerate: made it multi-threaded for performance boost (#204)
- mgenerate: fixed bug when using custom port number (#217)
- removed backward breaking
total_seconds()from logevent parsing (#210)
- performance improvements for log parsing (#187)
- mloginfo
--queriessection to aggregate queries (#131) - mplotqueries: scatter plots now show "duration triangles" on double-click (#201)
- mplotqueries: a number of bug fixes and stability improvements (#183, #199, #198, #191, #184)
- mlaunch: a different
--binarypathcan be specified withmlaunch start(#181) - mlaunch: general bug fixes and tests (#178, #179, #176)
- mlogfilter: timezone bug fixed (#186)
- added sort pattern parsing to LogEvent and added query pattern parsing for system.profile events (#200)
For all changes, see the closed issues tagged with milestone 1.1.4
- all tools can now read from system.profile collections as if it was a logfile. Use this syntax as command line argument: "host:port/database.collection" (#164)
- mtools now uses Travis CI for continuous integration testing
- all log-parsing tools are now timezone aware. If no timezone is specified (all log files <= 2.4.x), then UTC is assumed (#174)
- added new tool
mgenerateto create structured randomized data for issue reproduction - mlaunch: Added a
killcommand to send SIGTERM or any other signal to all or a subset of instances (#168) - mlaunch: username + password is added for environments with
--authentication. Configurable username, password, database, roles. Thanks, @sl33nyc (#156) - mlaunch: start command can receive new arguments to pass through to mongos/d, and a different
--binarypath(#151) - mlaunch: now checks in advance if port range is free, and warns if not (#166)
- mlaunch:
--versionwas removed by accident in 1.1.2. It's back now (#160) - mlogfilter:
--thread,--namespaceand--operationfilters can now be combined arbitrarily (#167) - mlogfilter: bugfix for when no log file was specified at command line. Now outputs clean error message (#124)
- mplotqueries: added a compatibility check for matplotlib version 1.1.1 for setting fontsize in legends (#128)
For all changes, see the closed issues tagged with milestone 1.1.3
- mlaunch: completely rewritten, is now aware of the launched environment, commands: init, start, stop, list (#148)
- mlaunch: mongos nodes start at beginning of port range for easier access (#145)
- mlaunch: always uses absolute paths for the data directory, which shows up in
ps aux | grep mongooutput (#143) - mlogfilter: added filter masks
--mask errors.logto search for correlations around certain events (#138) - mplotqueries: log parsing performance improvements for most plots
- mlogvis: log parsing performance improvements
- all tools: replaced shebang with
#!/usr/bin/env python, to support non-standard python installations
- mplotqueries: introduced a new type of plot "durline", to visualize start and end of long-running operations
- mplotqueries: use start times of operations that have a duration, rather than end time with
--optime-start(#130) - mplotqueries: group by query pattern with
--group pattern(#129) - mlaunch: allow more than 7 nodes, everyone above 7 is non-voting (#123)
- mloginfo: fixed bug where anonymous unix sockets can't be parsed (#121)
Simplified tool structure. A lot of the mini-scripts have been combined. There are only 5 scripts left: mlogfilter, mloginfo, mplotqueries, mlogvis, mlaunch. No features have been cut, they are all still available within the 5 scripts, but may have moved.
mlogfilter
- very fast binary search for time slicing
- timestamp-format aware, can convert between formats
- mlogmerge is now fully included into mlogfilter
- can output in json format
mloginfo
- mloginfo supports multiple files
- now with info sections on restarts, connections, distinct log lines
- shows progress bar during distinct log file parsing
mplotqueries
- can now group on arbitrary regular expressions
- has a new group limits feature, to group all but the top x groups together
- range plots support gaps
- better color scheme
- shows progress bar during log file parsing
mlaunch
- support multiple mongos
For a full list of fixed issues, visit the github issue page of mtools.
- mplotqueries: included a new plot type 'connchurn' that shows opened vs. closed connections over time (#77, #74).
- mplotqueries: removed redundant
--type durationplot and set the default to--type scatter --yaxis duration. - mloginfo: new tool that summarizes log file information, including start/end time, version if present, and optionally restarts.
- added nosetests infrastructure and first tests for mlaunch and mlogfilter (#39).
- added internal LogFile class that offers helper methods around log files (#80).
- fixed bug where
mlogfilter --shortenwas off by one character.
- mlogvis: fixed a bug displaying the data in the wrong time zone (#70).
- mplotqueries: fixed bug where a plot's argument sub-parser (e.g. for --bucketsize) couldn't deal with stdin.
- mplotqueries: fixed bug that caused crash when there was no data to plot (#68).
- mlogfilter: fixed bug that prevented
--fromand--toto be used with stdin (#73). - fixed bug parsing durations of log lines that have a float instead of int value (like 123.45ms).
- implemented ISO-8601 timestamp format parsing for upcoming change in MongoDB 2.6 (#76).
- mplotqueries: new plot types: "scatter" can plot various counters on the y-axis, "nscanned/n" plots inefficient queries (#58).
- mplotqueries: added footnote ("created with mtools") including version. Can be toggled on/off with 'f' (#33).
- mplotqueries: added histogram plots (--type histogram) with variable bucket size (#25).
- mplotqueries: always plot full range of logfile on x-axis, even if data points start later or end earlier (#60).
- mlogfilter: added human-readable option (--human) that inserts
,in large numbers and calculates durations in hrs,min,sec. (#8). - mlogdistinct: improved log2code matching and cleaned up log2code match database.
- mlogvis: doesn't require webserver anymore. Data is directly stored in self-contained html file (#57).
- mlogvis: when clicking reset, keep group selection, only reset zoom window (#56).
- mlaunch: different directory name will no longer create a nested
datafolder (#54). - mlaunch: arguments unknown to mlaunch are checked against mongod and mongos and only passed on if they are accepted (#55).
- mlaunch: now you can specify a path for the mongod and mongos binaries with --binarypath PATH (#46).
- mlaunch: positional argument for directory name removed. directory name now requires
--dir. default is./data.
- fixed timezone bug in mlogmerge (#24)
- allow for multiple mongos in mlaunch with
--mongos NUMparameter (#30) - mlaunch can now take any additional single arguments (like
-vvvor--notablescan) and pass it on to the mongod/s instances (#31) - all scripts now have
--versionflag (inherited from BaseCmdLineTool) (#34) - added
--fastoption to mlogfilter (#37) - mlogvis title added and legend height determined automatically (#45)
- mlaunch now checks if port is available before trying to start and exits if port is already in use (#43)
- improved mlogfilter
--from/--toparsing, now supports sole relative arguments for both arguments, millisecond parsing, month-only filtering (#12). - restructured tools to derive from base class
BaseCmdLineToolorLogFileTool - fixed bug in logline parsing when detecting duration at the end of a line
- changed
--logto--logscaleargument for mplotqueries to avoid confusion with "log" files - added Contributing page under the tutorials section
This is the first version of mtools that has a version number. Some significant changes to its unnumbered predecessor are:
-
installable via pip
-
directory re-organization: All tools are now located under
mtools/mtools/. This makes for easierPYTHONPATHintegration, which will now have to point to the actual mtools directory, and not to the parent directory anymore. This is more in line with other Python projects. -
mlogvistool added: a simplified version ofmplotqueriesthat doesn't requirematplotlibdependency. Instead, it will run in a browser window, using d3.js for visualization.mlogvisis currently in BETA state. -
introduced versioning: The version is stored in mtools/version.py and can be accessed programmatically from a Python shell with
import mtools mtools.__version__