fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Very often I need to review some logs of a given service.

I've found that is the perfect tool for analyse them. This is what I'm using:

- Occur (M-s o). Ask for a regexp and opens a new buffer with the matching lines. You can click on those lines

- `highlight-lines-matching-regexp`. This will mark in the buffer the lines. This helps a lot visualizing the important events.

- `flush-lines`: Delete all the lines that matches a regexp. To remove lines that are not adding any value

WλGMI

@robjperez

I also have a super composable oriented log inspection toolkit of:

CIDER inspector – for inspecting different views of the logs right in emac

@robjperez
Reducibles – Concrete log sources, e.g a log file or something more complex. In my SaaS I use the Telemere logging lib. Telemere has a config map and automatically creates compressed archives of the logs. It's kinda complex to read the log entries sequentially, so I wrote a fn from the Telemere config map to a reducible which reduces each log entry sequentially.

@robjperez
(also) Reducibles – Abstract views over log sources. Easy to craft by composing a reducible and a transducer with `eduction`. E.g last 100 log entries, last 10 exception log entries, all logs from the last 24 hours

Transducers – map, filter and github.com/olavfosse/context for the most part

Reducers – conj and friends

I should prolly do a video cus this is terrible exposition sosorry

GitHubGitHub - olavfosse/context: `grep -C` ala carte`grep -C` ala carte. Contribute to olavfosse/context development by creating an account on GitHub.