---
title: "How to permanently disable Logger"
description: "Disabling Logger permanently in OP5 Monitor involves stopping syslog-ng or rsyslog configurations and optionally disabling PostgreSQL. The process includes editing configuration files and managing log rotation to prevent related error messages."
url: "https://docs.itrsgroup.com/docs/faq/op5/360020054894-op5-monitor-how-to-permanently-disable-logger/index.html"
---
## Warning

Logger is no longer packaged with OP5 Monitor version 9.0 and is only currently supported on OP5 Monitor 8.x.

## EL7/CentOS7

Disable custom rsyslog configuration:

```
for file in /etc/rsyslog.d/op5-rsyslog{,-pgsql,-file}.conf; do mv "$file" "${file}.disabled"; done
```

Restart:

```
systemctl try-restart rsyslog
```

Now you can optionally disable PostgreSQL:

```
systemctl stop postgresql && systemctl mask postgresql
```

For feature, see: [MON-7236](https://itrs.atlassian.net/browse/MON-7236) - Getting issue details... STATUS

#### Warning

EL6/CentOS6 support for OP5 Monitor ended on Nov 2020.

## EL6/CentOS6

In /etc/syslog-ng/syslog-ng.conf comment out the include part like this:

```
#include "conf.d/*.conf";
```

Then reload syslog-ng

```
service syslog-ng reload
```

Note this fix will stop syslog-ng from using all filters in conf.d. This is only a problem if you have custom filters that you wish to use.

In a default OP5 Monitor system there are only this file op5-syslog-ng.conf present in conf.d

```
ls -l /etc/syslog-ng/conf.d/*
```

Now you can optionally disable postgres.

```
chkconfig postgresql off service postgresql stop
```

## Logrotate

You may also want to disable the daily log rotation to stop error messages from being sent out when it fails, since it will attempt to connect to the database:

```
sed -i 's/^/#/' /etc/cron.d/op5-logger-logrotate
```


