-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51d0f73
commit b693aa5
Showing
8 changed files
with
61 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# logdissect | ||
logdissect is a tool for gaining insight into syslog files. It can merge multiple log files together and sort by timestamp, and filter the results by time range and other criteria. Results are output to the terminal by default, and can also be output to standard syslog format, or to a JSON array. Files that end in .gz or .bz2 are ignored. | ||
logdissect is a tool for analyzing syslog files. It can merge entries from multiple log files and sort by timestamp, and filter the results by time range and other criteria. Results are output to the terminal by default, and can also be output to standard syslog file format, or to a JSON array. | ||
|
||
# Installing | ||
See the latest instructions on the [releases page](https://github.com/dogoncouch/logdissect/releases). | ||
|
@@ -47,7 +47,9 @@ See the latest instructions on the [releases page](https://github.com/dogoncouch | |
|
||
3. --range shortcuts: The range module will fill in your ranges with zeroes if they are shorter than 14 characters. If you want to get a range of 20170204120000 to 20170204130000, you can save time and use 2017020412 and 2017020413. | ||
|
||
4. --last options: the last option should be a number followed by either 's' for seconds, 'm' for minutes, 'h' for hours, or 'd' for days (e.g. --last=20m). | ||
4. --last options: The last option should be a number followed by either 's' for seconds, 'm' for minutes, 'h' for hours, or 'd' for days (e.g. --last=20m). | ||
|
||
5. Zipped files: Files that end in .gz, .bz2, or .zip are ignored. | ||
|
||
# Author | ||
Dan Persons ([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = '1.2' | ||
__version__ = '1.2.1' | ||
__author__ = 'Dan Persons <[email protected]>' | ||
__license__ = 'MIT License' | ||
__github__ = 'https://github.com/dogoncouch/logdissect' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,48 @@ | |
#_LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
#_OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
#_SOFTWARE. | ||
""" | ||
Logdissect | ||
----- | ||
Logdissect is a tool for analyzing syslog files. It can merge entries from multiple log files and sort by timestamp, and filter the results by time range and other criteria. Results are output to the terminal by default, and can also be output to standard syslog file, or to a JSON array. | ||
Options | ||
``````` | ||
:: | ||
Usage: logdissect [options] <files> | ||
--version show program's version number and exit | ||
-h, --help show this help message and exit | ||
--list-parsers returns a list of available parsers | ||
--list-morphers returns a list of available morphers | ||
--list-outputs returns a list of available output formats | ||
-p PARSER specifies parser to use (default: syslog) | ||
-s silences terminal output | ||
-v sets verbose terminal output | ||
Morph options: | ||
--grep=PATTERN specifies a pattern to match | ||
--host=HOST specifies a source host to match | ||
--last=LAST specifies preceeding time period (5m/3h/2d/etc) | ||
--process=PROCESS specifies a source process to match | ||
--range=RANGE specifies the range <YYYYMMDDhhmm-YYYYMMDDhhmm> | ||
--rgrep=RPATTERN specifies a pattern to filter out | ||
Output options: | ||
--outlog=OUTLOG sets the output file for standard log output | ||
--label=LABEL sets label type for entries in OUTLOG <fname|fpath> | ||
--outjson=OUTJSON sets the output file for JSON output | ||
Links | ||
````` | ||
* `Releases <https://github.com/dogoncouch/logdissect/releases/>`_ | ||
* `README <https://github.com/dogoncouch/logdissect/blob/master/README.md>`_ | ||
* `Development source <https://github.com/dogoncouch/logdissect/>`_ | ||
""" | ||
|
||
from setuptools import setup | ||
from os.path import join | ||
|
@@ -31,10 +73,10 @@ | |
|
||
setup(name = 'logdissect', version = str(__version__), | ||
description = 'Parse, merge, and filter syslog files', | ||
long_description = open('README.md').read(), | ||
long_description = __doc__, | ||
author = 'Dan Persons', author_email = '[email protected]', | ||
url = 'https://github.com/dogoncouch/logdissect', | ||
download_url = 'https://github.com/dogoncouch/logdissect/archive/v1.2.tar.gz', | ||
download_url = 'https://github.com/dogoncouch/logdissect/archive/v' + str(__version__) + '.tar.gz', | ||
keywords = ['log', 'syslog', 'analysis', 'forensics', 'security', | ||
'cli', 'secops', 'sysadmin', 'forensic-analysis', | ||
'log-analysis', 'log-analyzer', 'log-viewer'], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters