../psc6

ProLUG SEC Unit 6 🔒

Original URL: https://trevorsmale.github.io/techblog/post/psc6/

Intro 👋

Monitoring and parsing logs is essential to operational intelligence. Computers typically produce immense amounts of data—far more than a human can interpret in real time. To extract meaning from this data, we must intelligently filter event logs into clear, comprehensible, and actionable items.

Achieving this is easier said than done. This unit offers general advice on the art of making complex information comprehensible. 1


Worksheet

Discussion Post 1

Review chapter 15 of the SRE book:
2

There are 14 references at the end of the chapter. Follow them for more information. One of them by Julia Evans 3should be reviewed for question “c”.

Question

Answer

A few ideas from the book2 “Modern (sometimes referred to as “next-gen”) host agents use innovative techniques aimed at detecting increasingly sophisticated threats. Some agents blend system and user behavior modeling, machine learning, and threat intelligence to identify previously unknown attacks.”

“Host agents always impact performance, and are often a source of friction between end users and IT teams. Generally speaking, the more data an agent can gather, the greater its performance impact may be because of deeper platform integration and more on-host processing.”

Question

Answer

  1. “Debugging is an essential activity whereby systematic techniques—not guesswork—achieve results.”
  2. “Security investigations are different from debugging. They involve different people, tactics, and risks.”
  3. “Centralized logging is useful for debugging purposes, critical for investigations, and often useful for business analysis.”
  4. “Iterate by looking at some recent investigations and asking yourself what information would have helped you debug an issue or investigate a concern.”
  5. “Design for safety. You need logs. Debuggers need access to systems and stored data. However, as the amount of data you store increases, both logs and debugging endpoints can become targets for adversaries.”

Firstly, I would like to preface this answer with a disclaimer. I lack the competency to critisize and/or disect O’Relly’s book. With that out of the way. I am going to target the first point.

My only criticism here is that the point is very broad in scope as compared to the more granular and topics specific to this book/chapter.

Question

Answer

Question

Answer

Yes, I try to create excellent documentation with respect for my future self or others I may need to share it with. This involves numbered procedural steps with inputs and outputs, if that is the nature of the work. Otherwise, I write in a general manner that is legible to others.

Discussion Post 2

Read Monitoring Distributed Systems 4

Question

Answer

One of the general themes I gathered from this article is low cognitive overhead. It’s a concept I’m very familiar with from accessibility-focused design. Too much information overwhelms our ability to observe, absorb, and decide effectively.

For example, public signage must be simple, legible, and self-descriptive through clear graphic composition—guiding the eye where to look first and in which direction to proceed. This closely parallels the need for simplicity in monitoring and alerting systems. When such systems become overly complex, they can lead to misinterpretation, miscommunication, and fatigue due to information overload.

Information must be derived and presented in a way that is easily consumable, where errors are unmistakable—without exhausting the viewer.

New concepts

Question

Answer

  1. Latency
  2. Traffic
  3. Saturation
  4. Errors

Question

Answer

Question

Answer

In order to be effective, log must be:


Definitions

Lab 🧪

RSYSLOG

Reliable System and Kernel Logging System

Basic Steps:

  1. Ensure Rsyslog is installed and running on both the control-plane and target node.
  2. Configure sending of logs over UDP Port.
  3. Editing Rsyslog config to split out logs.

Question

Why do we split out the logs in this lab? Why don’t we just aggregate them to one place?

Answer

Question

Answer

Question

Answer

Question

Answer

Lab

Question

  1. Promtail (collects)
  2. Loki (stores)
  3. Grafana (visualizes)

loki-write.py

Question

Answer

Question

Answer

msg = ‘On server {host} detected error - Treasure Wuz Here’.format(host=host)

Question

Answer

Lab

Complete the killercoda lab found here: https://killercoda.com/het-tanis/course/Linux-Labs/108-kafka-to-loki-logging

Question

Answer

Question

Answer

Question

Can you find any configurations or blogs that describe why you might want to use this architecture or how it has been used in the industry?

Answer

Discord: https://discord.com/invite/m6VPPD9usw Youtube: https://www.youtube.com/@het_tanis8213 Twitch: https://www.twitch.tv/het_tanis ProLUG PSC Repo: https://github.com/ProfessionalLinuxUsersGroup/psc ProLUG PSC Book: https://professionallinuxusersgroup.github.io/psc/ ProLUG Book of Labs: https://leanpub.com/theprolugbigbookoflabs KillerCoda: https://killercoda.com/het-tanis



  1. Professional Linux User Group Security Engineering Unit 6 Worksheet Web Book ProLUG, 2025. ↩︎

  2. Building Secure and Reliable Systems Web Book Google, 2025. ↩︎ ↩︎

  3. How to Debug Blog Julia Evans, 2019. ↩︎

  4. SRE Handbook Web Book Google, 2025. ↩︎

  5. Powered by Kafka Website Apache, 2025. ↩︎