8/4/2023 0 Comments Lnav logNot sure if this is what you're looking for, but I came across this awesome little tool called lnav (Logfile Navigator) that might be of interest. May be more widely applicable for personal servers: lnav, an advanced log file viewer for the terminal: It uses SQLite internally but can parse log files in many formats on the fly. Show HN: Log collector that runs on a $4 VPS I believe they exist, but I also was thinking about possible caveats. To watch the output of log file with timestamps prepended: lnav -t /var/log/nginx/access.log. To load a particular log file, provide its absolute path. To load all of the files in /var/log: lnav /var/log. I tried to google about how to quickly run ELK in Docker locally (I had no prior experience in setting ELK up), but haven't found good tutorials. An output with latest log messages similar to one below will be shown. I had 2 options on my mind: local ELK and lnav. I've been recommending it for the last 7 years since I discovered this awesome little underappreciated util. LNAV () is ideally suited for this kind of thing, with an embedded sqlite engine and what amounts to a local laptop-scale mini-ETL toolkit w/ a nice CLI. The following log files are supported by default even if they are compressed with gzip or bzip2: Common Web Access Log format. Analyzing multi-gigabyte JSON files locally It can be done in any text editor, but there may be a better way thanks to lnav Log Files Navigator that allows checking those files more easily and efficiently in a Mac OS or Linux terminal.That said, lnav is quite powerful and reasonably easy to use and can grab a directory of log files from a remote server over SSH. I'd be interested in a native Mac app that does this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |