Score:0

Combine thousands of logger instances

ne flag

We have Apache 2.4 setup with over 1000 vhosts, and multiple instances of logger in each :

CustomLog "|/usr/bin/logger -t apache-access -p local6.notice -n x.x.x.x" access_log

Restarting httpd takes 90+ seconds because it's opening thousands of connections to the rsyslog server.

Any advices on how to make it more efficient ?

Score:2
in flag

Assuming all the logs go to the same server, I believe you can avoid this by having a single CustomLog entry in the main part of the server configuration, not in each VirtualHost. You can use a single LogFormat using %v to have the virtual hostname in the message if you need it for further processing at the rsyslog receiver. See the discussion under File Descriptor Limits.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.