.\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, write to the Free .\" Software Foundation, Inc., 51 Franklin Street, Fifth Floor, .\" Boston, MA 02110-1301 USA. .\" .TH "RECAPTOOL" "8" "Aug 18, 2017" .SH NAME .PP recaptool \- parses the logs and prints specific information about memory, processes, network connections or queries to a mysql db. .SH SYNOPSIS .BR "recaptool " "OPTIONS... " .SH DESCRIPTION recaptool is a parsing tool for recap logs that shows specific information like processes, memory, network or querycount. Useful for seeing trends on a particular option in the logs. .SH "OPTIONS" Note: Different options can be combined to get more information. .TP .BI "\-m, \-\-mem " "PROCESS_NAME" .RI "Shows the memory consumption for " "PROCESS_NAME" " from the logs." .TP .BI "\-p, \-\-proc " "PROCESS_NAME" .RI "Shows the amount of processes found for " "PROCESS_NAME" " from the logs." .TP .BI "\-b, \-\-memproc " "PROCESS_NAME" .RI "Shows both process count and memory consumption for " "PROCESS_NAME" " from the logs." .TP .BI "\-c, \-\-connections " "PORT" .RI "Shows the amount of connections to " "PORT" " from the logs." .TP .BI "\-e, \-\-established " "PORT" .RB "Shows the amount of " "ESTABLISHED" " connections to " .IR "PORT" " from the logs." .TP .BI "\-q, \-\-querycount" .RB "Shows the amount of " "mysql" " connections from the logs." .TP .BI "\-d, \-\-path " "PATH" .RB "Overrides the recap log " "PATH" ". Default uses BASEDIR" .I /var/log/recap/ .RB "(can be changed in config file)." .TP .BI "\-V, \-\-version" .RB "Print version and exit." .TP .BI "\-h, \-\-help" .RB "Prints the help information and exit." .SH FILES .IR /var/log/recap/*.log " (unless overridden by 'path' option)" .SH EXAMPLES .TP Show the memory and amount of processes running for httpd: .nf $ sudo recaptool \-\-memproc http Information: Using /var/log/recap as recap log path Information: Executing memproc http 2016\-10\-07_00:00:01 1101 3032.535 M 2016\-10\-07_00:10:01 1120 3132.832 M 2016\-10\-07_00:20:01 1128 3186.153 M .fi .TP .RB "Show the amount of " "established " "connections on port 443:" .nf $ sudo recaptool \-e 443 Information: Using /var/log/recap as recap log path Information: Executing established 443 2016\-10\-07_00:00:01 302 2016\-10\-07_00:10:01 311 2016\-10\-07_00:20:01 312 .fi .TP Show the amount of query connections to the mysql db: .nf $ sudo recaptool \-\-querycount Information: Using /var/log/recap as recap log path Information: Executing querycount 2016\-10\-07_00:00:01 124 2016\-10\-07_00:10:01 125 2016\-10\-07_00:20:01 128 .fi .TP Show all of the above in a single command: .nf $ sudo recaptool \-\-memproc http \-e 443 \-\-querycount Information: Using /var/log/recap as recap log path Information: Executing memproc http 2016\-10\-07_00:00:01 1101 3032.535 M 2016\-10\-07_00:10:01 1120 3132.832 M 2016\-10\-07_00:20:01 1128 3186.153 M Information: Executing established 443 2016\-10\-07_00:00:01 302 2016\-10\-07_00:10:01 311 2016\-10\-07_00:20:01 312 Information: Executing querycount 2016\-10\-07_00:00:01 124 2016\-10\-07_00:10:01 125 2016\-10\-07_00:20:01 128 .fi .SH "REPORTING BUGS" Bugs and issues to be submitted via github . .SH AUTHOR The recap scripts are maintained by Rackspace, the list of contributors is available at https://github.com/rackerlabs/recap/blob/master/CHANGELOG.md#contributors. .SH "SEE ALSO" .BR recap.conf (5), .BR recap (8),