from logging import Filter


class ZabbixLogsFilter(Filter):
    def filter(self, record):
        if record.getMessage().startswith('JSON-RPC Server Endpoint'):
            return False

        return super(ZabbixLogsFilter, self).filter(record)

from logging import Filter


class ZabbixLogsFilter(Filter):
    def filter(self, record):
        # Mute useless Zabbix log concerning JSON-RPC server endpoint.
        if record.getMessage().startswith('JSON-RPC Server Endpoint'):
            return False

        return super(ZabbixLogsFilter, self).filter(record)

Add comment about skipping JSON-RPC log