Re: Logging [RESOLVED]

"Peter J. Holzer" <[email protected]>
Newsgroups gmane.comp.db.postgresql.general
Message-ID <[email protected]>
On 2019-12-04 16:03:24 -0800, Rich Shepard wrote:
> On Wed, 4 Dec 2019, Stephen Eilert wrote:
> > Usually, this is done by logrotate or a similar mechanism in your system.
> > You’ll likely find that other logs in your system follow a similar
> > pattern, not just Postgresql.
> 
> I just checked /etc/logrotate.d/postgres and it was set at daily with rotate
> 7. I changed rotate to 4 but the dates are 3-4 days apart, not sequential.

Your log files are extremely small. At only a few hundred bytes every 3
or 4 days it is very likely that nothing is logged on most days. If your
log file is empty, logrotate won't rotate it if the option "notifempty"
is set (which is probably the case).

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | [email protected]         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl3q0V8ACgkQ8g5IURL+
KF2vsQ/7BrhZQIA3G9cY1uOaAHCGjpDaovSNld4Gd79FvPMvpS71mXIMouMquGv7
TbETSrh5hCvefT2y/LgiTPEPN6PbQTOMP3iLm2xD4rAyzlhkDSQ/jMLcyGDcw4uw
4YQ963pn4AVcjp7p2cEtoGJpVh5pfVdSP6H6wulClrNPnDGLryy1M1PJFY6IjYVC
s2GvxAgV7m3zeupg7gcvOmGdSRSK8JT93D10pd4Z+bcZGxZtL+3SOcnbkOQu25f1
Rc7GdxQwFdh9IwhOPJWZ1W8HyaLmJb6SQC4laGytW+XQ7mCimOIvBNMCr/iqtWMp
JVYH+zp0ICFRA+HrlRbQeuVWGF1mbHcOzvLI4FKPIKFIX91wfdUwgUGpJkOG5J87
cO0GUhRTOBADK3BCjWcB4HRIskV0rLVKJD1hLFKm8u7BzwGRQ0PwGoWHcHlzvg7k
Q7BOam+81nicRbFhzlVJ60H3z8Vv0rQPQ+TrskUjf4lhRTLN0KPGmkYPy6fUQeb8
eGPO8vV6hEPQP7HuY1LT7p4IuWwZg57fI9fbBcWSVwXCxNh1z3R+oRMM3lZk1q8o
iPKXXLYKSjhY9PPmFhzmLQcq6rwaoL9+rxwYwJkJzhLlol1kTncHrrk79XsTHowV
T7Siet7Ir+xPDACal8XhFokZNjXtwlap9A/E3nA/g/Cq3MIFbo4=
=EW4Z
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.