Whenever you're ready, walk me through how you'd approach this.
How would you detect active SSH connections by parsing logs?
Explain which Linux log sources you would use, how you would correlate connection and disconnection events, and how you would handle log rotation, restarts, duplicate records, and missing events. Include a practical detection approach, validation method, and limitations of relying on logs alone.