Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a2o/snoopy
Snoopy Command Logger is a small library that logs all program executions on your Linux/BSD system.
https://github.com/a2o/snoopy
bsd command-line-logger linux logger logging program-execution-logger snoopy snoopy-logger
Last synced: 7 days ago
JSON representation
Snoopy Command Logger is a small library that logs all program executions on your Linux/BSD system.
- Host: GitHub
- URL: https://github.com/a2o/snoopy
- Owner: a2o
- License: gpl-2.0
- Created: 2012-12-19T22:52:06.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T22:51:39.000Z (4 months ago)
- Last Synced: 2024-10-29T17:48:30.183Z (4 months ago)
- Topics: bsd, command-line-logger, linux, logger, logging, program-execution-logger, snoopy, snoopy-logger
- Language: C
- Homepage:
- Size: 2.18 MB
- Stars: 1,210
- Watchers: 58
- Forks: 154
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: COPYING
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
- awesome-repositories - a2o/snoopy - Snoopy Command Logger is a small library that logs all program executions on your Linux/BSD system. (C)
- awesome-discoveries - Snoopy Logger - a tiny library that logs all executed commands on your system to syslog _(`C`)_ (DevOps Utilities)
- starred-awesome - snoopy - Log every executed command to syslog (a.k.a. Snoopy Logger). (C)
- awesome-hacking-lists - a2o/snoopy - Snoopy Command Logger is a small library that logs all program executions on your Linux/BSD system. (C)
README
# Snoopy Command Logger
## Table of contents
* [What is Snoopy?](#what-is-snoopy)
* [News](#news)
* [Latest version](#latest-version)
* [Installation](#installation)
* [Output](#output)
* [Configuration](#configuration)
* [FAQ - Frequently asked questions](#faq-frequently-asked-questions)
* [Security disclaimer](#security-disclaimer)
* [Contributing to Snoopy development](#contributing-to-snoopy-development)
* [Getting support](#getting-support)
* [License](#license)
* [Online resources](#online-resources)
* [Credits](#credits)## What is Snoopy?
Snoopy is a small library that logs all program executions on your Linux/BSD system.
[Developer documentation](doc/HACKING-INTERNALS.md) outlines how it actually does that (a fairly technical read).
And don't miss the [security disclaimer](#security-disclaimer) about it.## News
| Date | What? | Details |
| ------------ | ------------------------- | --------- |
| 2024-10-24 | Snoopy 2.5.2 released. | Bugfix release + created Ubuntu 24.04 packaging. |
| 2022-09-28 | Snoopy 2.5.1 released. | Bugfix release - fixed 32-bit builds. |
| 2022-08-19 | Snoopy 2.5.0 released. | Thread safety by default & binary distribution packages are finally here! :) |Consult [ChangeLog](ChangeLog) for more information.
## Latest version
| Latest release | Version | Status | Download location |
| -------------- | -------- | ------ | ----------------- |
| Stable | 2.5.2 | [/badge.svg?branch=snoopy-2.5.2)](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Build+QA+-+OS+Matrix%20(Large)%22+branch%3Asnoopy-%2A)
[/badge.svg?branch=snoopy-2.5.2)](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Build+QA+-+Config+Matrix+%28Large%29%22+branch%3Asnoopy-%2A)
[](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Code+QA+-+Autoscan%22+branch%3Asnoopy-%2A)
[](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Code+QA+-+Valgrind%22+branch%3Asnoopy-%2A) | All release packages can be found over there :point_right: in the [Releases](https://github.com/a2o/snoopy/releases) section. |
| Development | `master` | [/badge.svg?branch=master)](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Build+QA+-+OS+Matrix+%28Large%29%22+branch%3Amaster)
[/badge.svg?branch=master)](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Build+QA+-+Config+Matrix+%28Large%29%22+branch%3Amaster)
[](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Code+QA+-+Autoscan%22+branch%3Amaster)
[](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Code+QA+-+Valgrind%22+branch%3Amaster)
[](https://scan.coverity.com/projects/4973)
SonarCloud:
[](https://sonarcloud.io/dashboard?id=snoopy)
[](https://sonarcloud.io/dashboard?id=snoopy)
[](https://sonarcloud.io/dashboard?id=snoopy)
[](https://sonarcloud.io/dashboard?id=snoopy)
[](https://sonarcloud.io/dashboard?id=snoopy)
[](https://sonarcloud.io/dashboard?id=snoopy)
[](https://sonarcloud.io/dashboard?id=snoopy)
[](https://sonarcloud.io/dashboard?id=snoopy)
[](https://sonarcloud.io/dashboard?id=snoopy)
[](https://sonarcloud.io/dashboard?id=snoopy) | `git clone [email protected]:a2o/snoopy` |## Installation
[](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Install+QA+-+README.md%22+branch%3Amaster)
[](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Install+QA+-+install-snoopy.sh%22+branch%3Ainstall)
[](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Install+QA+-+OS+Matrix%22+branch%3Ainstall)
[](https://github.com/a2o/snoopy/actions?query=workflow%3A%22Release+QA+-+OS+Matrix+-+Install+from+source%22)Starting with version 2.5.0, repositories with binary packages are provided for major Linux distributions.
Here is a [guide to installing Snoopy from package repositories](doc/install-from-repo.md).*WARNING:* If you've installed Snoopy from source (i.e. using the `install-snoopy.sh` script method below) before, it's best to remove it before installing it from a package repository.
[This guide](doc/install-from-source.md) contains steps to remove "manually" installed Snoopy from your system.Alternatively, the original method of installing Snoopy from source is still available:
```shell
wget -O install-snoopy.sh https://github.com/a2o/snoopy/raw/install/install/install-snoopy.sh &&
chmod 755 install-snoopy.sh &&
sudo ./install-snoopy.sh stable
```More information is available in the [doc/INSTALL.md](doc/INSTALL.md) document.
## Output
This is what typical Snoopy output looks like:
2015-02-11T19:05:10+00:00 labrat-1 snoopy[896]: [uid:0 sid:11679 tty:/dev/pts/2 cwd:/root filename:/usr/bin/cat]: cat /etc/fstab.BAK
2015-02-11T19:05:15+00:00 labrat-1 snoopy[896]: [uid:0 sid:11679 tty:/dev/pts/2 cwd:/root filename:/usr/bin/rm]: rm -f /etc/fstab.BAK
2015-02-11T19:05:19+00:00 labrat-1 snoopy[896]: [uid:0 sid:11679 tty:/dev/pts/2 cwd:/root filename:/usr/bin/tail]: tail -f /var/log/messagesThese are default output locations on various Linux distributions:
| Distribution | Snoopy output location | Notes |
| ------------ | ---------------------- |---------------------------------- |
| CentOS | `/var/log/secure` | |
| Debian | `/var/log/auth.log` | |
| Ubuntu | `/var/log/auth.log` | |
| (others) | `/var/log/messages` | (potentially, could be elsewhere) |For actual output format and destination, check your Snoopy and syslog configuration.
## Configuration
If the configuration file support is available in your Snoopy build (it probably is),
Snoopy can be reconfigured on-the-fly.The configuration file is (most likely, but depending on the build) located at `/etc/snoopy.ini`.
Supported configuration directives are explained in the [default configuration file](etc/snoopy.ini.in).
## FAQ - Frequently asked questions
Frequently asked questions and answers are collected in the [doc/FAQ.md](https://github.com/a2o/snoopy/blob/master/doc/FAQ.md) file in this repository.
## Security disclaimer
**WARNING: Snoopy is not a reliable auditing solution.**
Rogue users can easily manipulate environment to avoid their actions being logged by Snoopy.
Consult [this FAQ entry](https://github.com/a2o/snoopy/blob/master/doc/FAQ.md#5-i-see-no-snoopy-output-after-initial-user-login) for more information.## Contributing to Snoopy development
Consult the following documents for information related to Snoopy development:
- [CONTRIBUTING.md](.github/CONTRIBUTING.md)
- [HACKING-OVERVIEW.md](doc/HACKING-OVERVIEW.md)
- [HACKING-INTERNALS.md](doc/HACKING-INTERNALS.md)
- [HACKING-QA.md](doc/HACKING-QA.md) (Autoscan, Travis-CI and Valgrind-related sections)## Getting support
Information is available in a [dedicated document about getting support](https://github.com/a2o/snoopy/blob/master/doc/GETTING-SUPPORT.md).
## License
Snoopy is released under [GNU General Public License version 2](https://github.com/a2o/snoopy/blob/master/COPYING).
## Online resources
Snoopy development is located at the following URI:
- https://github.com/a2o/snoopy/Additional git repository mirrors (read-only) are available here:
- https://gitlab.com/a2o/snoopy/
- https://bitbucket.org/snoopylogger/snoopy/## Credits
Snoopy Command Logger was originally created and maintained by:
- Marius Aamodt Eriksen
- Mike BakerContribution acknowledgements are available at the following locations:
- In the [ChangeLog](ChangeLog),
- In [pull requests](https://github.com/a2o/snoopy/pulls),
- In [git history](https://github.com/a2o/snoopy/commits/master).Snoopy is currently maintained by [Bostjan Skufca Jese](https://github.com/bostjan).