System Logs RS has lost mail logs

SYSTEM INFORMATION
OS type and version Rocky Linux 9.8
Webmin version 2.641
Usermin version 2.540
Virtualmin version 8.1.0 Professional
Theme version 26.41
Apache version 2.4.62
Package updates All installed packages are up to date

When did this all change, I can’t see /var/log/maillog any more plus alot of other logs.

Are those missing log files actually present ?
I use a Ubuntu server and everything is fine

dunno maybe it’s an RHEL thing IDK

Most logs in modern systems are in the journal. If you want them to go somewhere else, like the traditional text log, you’ll need to configure the services to log to those old files.

What you want is the new System Logs module, and you want probably to look at the postfix or dovecot units.

The System Logs RS module is for older systems that use rsyslogd by default, and writes everything to text logs.

This isn’t a Virtualmin thing, this is just how Linux systems work today.

There have been several discussions about this change over the years.

Here’s one: Where are mail logs (right out of the box)? - #3 by Joe

Yes, I added the /var/log/maillog manually. For some reason alot of lines where removed. Mail log is the most common log I look at.

RHEL still uses logs in that area.
I’ll add the one I need manually. I like the old log system.

I do use the journal rather than the older log file system, but I tend to use it on the command line rather than the webmin module, for the reason you can only select 1 service at a time using the webmin ui where as when i want to view mail logs I combine postfix, dovecot and spamd. Not required I use multitail which allows more than one log combination to be displayed at the same time which is great for debugging multiple services at the same time.

I did propose custom entries for the journal, maybe there is more of a car for it than me

All in need is the ability to multi select from the service drop down, however with --reverse this sorts on service rather than time/date so you don’t get a cronilogic order, maybe, if they get around to it webmin could sort the data chronologically rather the by service and then dispense with the --reverse option

this is a nice idea

I don’t think I fully understand what kind of functionality you’re looking for. Could you try explaining it in other words?

They’re asking to be able to select multiple units.

journalctl -u postfix -u dovecot

But, that’s another topic. Not what this topic is about.

–reverse` option

I am not sure if this is on topic or off topic. But keep the --reverse option, people read lists different. :smiley: (i.e. I like my new emails at the top)

The assertion that reverse sorts alphabetically is maybe a problem, though? If that’s the case it would have to be a Webmin bug, as using the flag in journalctl does not sort by unit name, it sorts by time.

@jimr1 are you really seeing an alphabetic sort? That’s not what I see at all on any of my systems. I see a mix of all services in the default journal feed in the System Logs module, in chronological order.

I don’t think we should support it. It’ll make the UI messy and more complicated.

I’ll carry on using the command line then

Could you explain your workflow a bit more? Why do you need to have two units selected at the same time?

To simulate the data you would get from the ‘older’ mail.log output which from memory was input from postfix, dovecot and spamd ( there could be postgrey as well ) so to achieve that I run

journalctl -u dovecot -u postfix@-service -u spamd  

but as things have progressed I’ve added -u sshd so I can tail everything in one place rather than jumping between different units or having loads of tmux windows open tailing each service or using multitail
example :-

You can do that with a regex like postfix|dovecot put in the filter box while lines of “All messages” is selected. Would that work for you?

doesn’t appear to

Try adding more lines like 10000 or more.