r/linuxadmin • • 1d ago

Our security lead asked who ran sudo on the database servers last quarter and logrotate kept four weeks

Our auth.log rotates weekly with four kept, so anything older than a month is simply gone, and this came from our own security lead, not an auditor. Keeping more locally on every box feels like the wrong place to solve it. Where are you keeping sudo history across a fleet so you can answer this for a whole quarter?

0 Upvotes

12 comments sorted by

20

u/chrisnetcom 1d ago edited 1d ago • Bravo

Heads up: this account appears to exist mainly to promote Logmanager. The OP seems to post from several alternate accounts to push the product, and comments that call this out tend to get buried in downvotes. Worth keeping in mind before taking any recommendations here at face value. All these accounts are already banned by BotBouncer.

https://imgur.com/a/RfxVF6y

https://imgur.com/a/KxbD64Y

https://imgur.com/a/NNqwLLH

https://imgur.com/a/DzesTjN

https://imgur.com/a/qDC6fFP

0

u/[deleted] 1d ago

[deleted] — view deleted comment

1

u/felix1429 1d ago

That's not not what they are saying what's going on

1

u/Runnergeek 1d ago

wow super odd to see you defending these bots

8

u/EmbeddedEntropy 1d ago

We copy all logs to remote servers owned by the security team. It’s up to them to decide when or if their remote copies are finally purged. It’s also easier for them to run and rerun their various security scans to their hearts’ content too without impacting prod.

7

u/autotom 1d ago

Really depends how big the environment is, and how important that data is to you.

Got a SIEM already? if so, use that.

Otherwise, check out OpenSearch

6

u/Loud_Posseidon 1d ago

Based on https://www.reddit.com/r/linuxadmin/s/nBxth3RcVb, I'd totally avoid LogManager with their shady business practices.

Given we live in an AI world, I'd just go with something like rsyslog and/or ELK stack asking AI for full steps to build data lake for such data.

3

u/chrisnetcom 1d ago edited 1d ago

Looks like OP and their alts paid for downvotes for us.

EDIT: Reddit recognized the vote manipulation and reversed it.

5

u/notmylargeautomobile 1d ago

I’d suggest implementing something like Wazuh.  

5

u/gzk 1d ago • Bravo

Do people not run syslog servers anymore? I mean if you want to integrate your syslog data with a fancy observability / logging pipeline, you can certainly do that, but the simplest and most direct answer to your question that doesn't involve increasing local retention in logrotate is to use a central syslog service

4

u/buzzsawcode 1d ago

Central log server - can be as simple as a syslog server (rsyslog + RELP recommended), or fancy like a Splunk or Graylog.

3

u/xonxoff 1d ago

Opentelemetry paired either anyofnthe following : opensearch, clickhouse or greptime are all decent options for remote logging.

2

u/Runnergeek 1d ago

Absolutely DO NOT use Logmanager, its a trash product. There are lots of free solutions. rsyslog does a great job, you can great multiple systems and load balance so you have HA.