Re: custom log. variable %h reports [unknown]

From: Jerry Sievers <gsievers19(at)comcast(dot)net>
To: Artem Tomyuk <admin(at)leboutique(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: custom log. variable %h reports [unknown]
Date: 2016-01-26 18:19:35
Message-ID: 86bn88urt4.fsf@jerry.enova.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Artem Tomyuk <admin(at)leboutique(dot)com> writes:

> Hi All!
>
> og_connections = on
>
> log_disconnections = on
>
> log_line_prefix = '===========> %h %u %t %p %x: [%l-1]'    
>
> log_hostname = off
>
> But in logs i see:
>
> ===========>  [unknown] 2016-01-26 17:07:46 UTC 1664 0: [1-1]LOG:  connection received: host=192.168.112.181 port=50321

Postmaster.

You should get something similar for AutoVac activity and/or anything
else not originated from a particular backend.

> ===========> 192.168.112.181 postgres 2016-01-26 17:07:46 UTC 1664 0: [2-1]LOG:  connection authorized: user=postgres database=lb_upr
>
> ===========>  [unknown] 2016-01-26 17:08:27 UTC 1665 0: [1-1]LOG:  connection received: host=192.168.112.181 port=50330
>
> The off. docs says that variable %h stands for Remote hostname or IP.
>
> Any ideas?
>
> PS 
>
> DNS server configured to NOT answer on r-lookup queries, because he does not have reverse zone for  my network.
>

--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres(dot)consulting(at)comcast(dot)net
p: 312.241.7800

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Willy-Bas Loos 2016-01-26 18:51:45 Re: copy a barman snapshot to another backup server
Previous Message Gilberto Castillo 2016-01-26 18:17:13 Re: [MASSMAIL]custom log. variable %h reports [unknown]