In progress project for a gem/tool that bundles log files and command outputs, driven from config files.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
test
.gitignore
Gemfile
README.rdoc
Rakefile
logbundler.gemspec

README.rdoc

logbundler

DESCRIPTION:

Logbundler automates the creation of diagnostic archives for offline debug and analysis of a server/application. A config file specifies what log files to gather and what commands to run and gather output from.

Supports Ruby 1.8+???

CONFIG FILES:

Logbundler reads JSON config files, which describe what files and command outputs to bundle up.

For example…

<tt> {

"system": [
  { "shell": "rpm -qa", "timeout": "10s", "stdout": "rpms/rpm-qa.stdout", },
  { "shell": "dmidecode", "timeout": "5s", "stdout": "sys/dmidecode.out", },
  { "files": "/var/log/messages*", "filetype": "syslog" }
],
"tomcat": [
  { "files": "/opt/tomcat/logs/catelina.log*", "filetype": "catelina-access" },
  { "shell": "service tomcat status", "timeout": "3s", "stdout": "tomcat/service.status" }
]

} </tt>

TO DO:

  • Basic bundle from single config file (first step)

  • Unit test basic bundle

  • Get gem build working

  • Set up Travis CI for continuous test and to verify with multiple versions of Ruby

  • Test on Windows

LINKS:

Source:

LICENSE:

Author

Jeff Dutton (<jeff.r.dutton@gmail.com>)

Copyright

Copyright © 2012 Jeff Dutton

License

Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.