Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solidsnack/weblog
This is an experiment to learn Dart, by building a log browser.
https://github.com/solidsnack/weblog
Last synced: about 2 months ago
JSON representation
This is an experiment to learn Dart, by building a log browser.
- Host: GitHub
- URL: https://github.com/solidsnack/weblog
- Owner: solidsnack
- Created: 2013-05-04T13:54:37.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-04T13:56:53.000Z (over 11 years ago)
- Last Synced: 2023-04-09T12:18:41.129Z (almost 2 years ago)
- Language: JavaScript
- Size: 461 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Weblog is a browser for system log files. It treats log messages as ordered
text tuples, where certain formatting conventions are adhered to:* The timestamp is the first field of the message and it is an RFC 3339 (or
ISO 8601) formatted time and date with no spaces.* There is DNS hostname, representing a server or "network location".
* There is an "application" or "component" field.
Together, these three fields locate each message in a browsable, zoomable 3D
space of logs. Here's an example of a consumable log message:2011-04-09T11:31:21.222222+00 a.server user.err apache[678]: webs active
It is not hard to get `rsyslog` to format messages exactly this way:
$template Log, "%timereported:::date-rfc3339% \
%hostname% \
%syslogfacility-text%.%syslogpriority-text% \
%syslogtag%\
%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
$ActionFileDefaultTemplate LogWhy strings, even for timestamps? Well, not-parsing is faster than parsing...