Re: [ULOGD2] Timestamp without year in logemu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Tue, 2017-01-03 at 21:28 +0200, Petteri Matilainen wrote:
> Hello list,
> 
> I'm using iptables firewall and I'm logging blocked packets with
> NFLOG 
> target and ULOGD2. I have the following configuration in ulogd.conf:
> 
> # this is a stack for logging packets to firewall.log after a
> collect 
> via NFLOG
> stack=firewall6:NFLOG,base6:BASE,ifi6:IFINDEX,ip2str6:IP2STR,print6:P
> RINTPKT,logemu6:LOGEMU
> 
> [logemu6]
> file="/var/log/firewall.log"
> sync=1
> 
> The logging itself works just fine, but I noticed the timestamps are 
> missing the year, like so:
> 
> Apr 23 10:38:04 Router In_New_TCP IN=eth0 OUT=...
> 
> Any ideas why? This causes problems with the system I'm using to
> graph 
> the logs and make statistics. My system is Debian with kernel
> 3.16.7. 
> Ulogd version is 2.0.4. I found an online manual for ulogd2 which 
> mentioned a LOCAL filter but my ulogd does not recognize it.

I've just checked the code and it is using (since 2006) ctime which
does not return the year.

It may not work for you but if you use the JSON output, you will get
something nicely formated and will get the year.

BR,
-- 
Eric Leblond <eric@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux