Skip to content

Get results from previous run #1196

Closed Answered by mboelen
hmoffatt asked this question in Q&A
Jul 28, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Yes, Lynis is intended to show readable output on the screen, debug information in the log, and machine-parsable information in the report file.

Now the definition of "nice" and "formatted" differs between people. So let's assume something that you can quickly see the differences between the scan of yesterday of today. What you can do is create a diff between two Lynis scans:
diff -y /var/log/lynis-report-previous.dat /var/log/lynis-report.dat | grep -v "report_datetime"

See the link on how to create this into a script if you want to automate things.

Does this help?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hmoffatt
Comment options

@mboelen
Comment options

@hmoffatt
Comment options

Answer selected by mboelen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants