All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH ulogd2 1/2] ulogd.conf: harmonize log file options with module default values
@ 2017-02-13  9:47 Kaarle Ritvanen
  2017-02-13  9:47 ` [PATCH ulogd2 2/2] rotate all default output files Kaarle Ritvanen
  2017-03-07 14:00 ` [PATCH ulogd2 1/2] ulogd.conf: harmonize log file options with module default values Eric Leblond
  0 siblings, 2 replies; 5+ messages in thread
From: Kaarle Ritvanen @ 2017-02-13  9:47 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Kaarle Ritvanen

Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
---
 ulogd.conf.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ulogd.conf.in b/ulogd.conf.in
index 2fcf39a..6e7bdf4 100644
--- a/ulogd.conf.in
+++ b/ulogd.conf.in
@@ -183,15 +183,15 @@ nlgroup=1
 socket_path="/tmp/nuauth_ulogd2.sock"
 
 [emu1]
-file="/var/log/ulogd_syslogemu.log"
+file="/var/log/ulogd.syslogemu"
 sync=1
 
 [op1]
-file="/var/log/ulogd_oprint.log"
+file="/var/log/ulogd.pktlog"
 sync=1
 
 [gp1]
-file="/var/log/ulogd_gprint.log"
+file="/var/log/ulogd.gprint"
 sync=1
 timestamp=1
 
@@ -311,7 +311,7 @@ facility=LOG_LOCAL2
 
 [nacct1]
 sync = 1
-#file = /var/log/ulogd_nacct.log
+#file = /var/log/nacctdata.log
 
 [mark1]
 mark = 1
-- 
2.9.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH ulogd2 2/2] rotate all default output files
  2017-02-13  9:47 [PATCH ulogd2 1/2] ulogd.conf: harmonize log file options with module default values Kaarle Ritvanen
@ 2017-02-13  9:47 ` Kaarle Ritvanen
  2017-03-07 14:00 ` [PATCH ulogd2 1/2] ulogd.conf: harmonize log file options with module default values Eric Leblond
  1 sibling, 0 replies; 5+ messages in thread
From: Kaarle Ritvanen @ 2017-02-13  9:47 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Kaarle Ritvanen

Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
---
 ulogd.logrotate | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ulogd.logrotate b/ulogd.logrotate
index b3fb6d1..3b4c487 100644
--- a/ulogd.logrotate
+++ b/ulogd.logrotate
@@ -1,4 +1,4 @@
-/var/log/ulogd.log /var/log/ulogd.syslogemu /var/log/ulogd.pktlog /var/log/ulogd.pcap {
+/var/log/ulogd.log /var/log/ulogd.syslogemu /var/log/ulogd.pktlog /var/log/ulogd.gprint /var/log/ulogd.json /var/log/ulogd.pcap /var/log/ulogd.sqlite3db /var/log/nacctdata.log {
     missingok
     sharedscripts
     postrotate
-- 
2.9.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH ulogd2 1/2] ulogd.conf: harmonize log file options with module default values
  2017-02-13  9:47 [PATCH ulogd2 1/2] ulogd.conf: harmonize log file options with module default values Kaarle Ritvanen
  2017-02-13  9:47 ` [PATCH ulogd2 2/2] rotate all default output files Kaarle Ritvanen
@ 2017-03-07 14:00 ` Eric Leblond
  2017-04-12 11:40   ` Kaarle Ritvanen
  1 sibling, 1 reply; 5+ messages in thread
From: Eric Leblond @ 2017-03-07 14:00 UTC (permalink / raw)
  To: Kaarle Ritvanen, netfilter-devel

Hello Kaarle,

Thanks for the cleaning work. Some comment inside.

On Mon, 2017-02-13 at 11:47 +0200, Kaarle Ritvanen wrote:
> Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
> ---
>  ulogd.conf.in | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/ulogd.conf.in b/ulogd.conf.in
> index 2fcf39a..6e7bdf4 100644
> --- a/ulogd.conf.in
> +++ b/ulogd.conf.in
> @@ -183,15 +183,15 @@ nlgroup=1
>  socket_path="/tmp/nuauth_ulogd2.sock"
>  
>  [emu1]
> -file="/var/log/ulogd_syslogemu.log"
> +file="/var/log/ulogd.syslogemu"

I really like the idea of getting an harmonized naming for the log
files but I think we should do it reverse for values that are not
commented in the configuration file. Most distributions and install are
shipping with a copy of default configuration. 

Most users won't have changed the values that are uncommented. So they
will have on disk the log file with name defined in the configuration
file. And they will benefit from a new logrotate file. Thus we should
use the file name defined in the conf as value of the default file name
in code.

Could you resubmit a patchset ?

BR,
-- 
Eric Leblond <eric@regit.org>
Blog: https://home.regit.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH ulogd2 1/2] ulogd.conf: harmonize log file options with module default values
  2017-03-07 14:00 ` [PATCH ulogd2 1/2] ulogd.conf: harmonize log file options with module default values Eric Leblond
@ 2017-04-12 11:40   ` Kaarle Ritvanen
  2017-05-15 22:05     ` Eric Leblond
  0 siblings, 1 reply; 5+ messages in thread
From: Kaarle Ritvanen @ 2017-04-12 11:40 UTC (permalink / raw)
  To: Eric Leblond; +Cc: netfilter-devel

On Tue, 7 Mar 2017, Eric Leblond wrote:

> I really like the idea of getting an harmonized naming for the log
> files but I think we should do it reverse for values that are not
> commented in the configuration file. Most distributions and install are
> shipping with a copy of default configuration. 
> 
> Most users won't have changed the values that are uncommented. So they
> will have on disk the log file with name defined in the configuration
> file. And they will benefit from a new logrotate file. Thus we should
> use the file name defined in the conf as value of the default file name
> in code.
> 
> Could you resubmit a patchset ?

I preprared a new patch set according to your feedback:

http://marc.info/?l=netfilter-devel&m=149064027208491&w=2
http://marc.info/?l=netfilter-devel&m=149064028308496&w=2

Please take a look at them.

BR,
Kaarle

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH ulogd2 1/2] ulogd.conf: harmonize log file options with module default values
  2017-04-12 11:40   ` Kaarle Ritvanen
@ 2017-05-15 22:05     ` Eric Leblond
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Leblond @ 2017-05-15 22:05 UTC (permalink / raw)
  To: Kaarle Ritvanen; +Cc: netfilter-devel

Hello,

On Wed, 2017-04-12 at 14:40 +0300, Kaarle Ritvanen wrote:
> On Tue, 7 Mar 2017, Eric Leblond wrote:
> 
> > I really like the idea of getting an harmonized naming for the log
> > files but I think we should do it reverse for values that are not
> > commented in the configuration file. Most distributions and install
> > are
> > shipping with a copy of default configuration. 
> > 
> > Most users won't have changed the values that are uncommented. So
> > they
> > will have on disk the log file with name defined in the
> > configuration
> > file. And they will benefit from a new logrotate file. Thus we
> > should
> > use the file name defined in the conf as value of the default file
> > name
> > in code.
> > 
> > Could you resubmit a patchset ?
> 
> I preprared a new patch set according to your feedback:
> 
> http://marc.info/?l=netfilter-devel&m=149064027208491&w=2
> http://marc.info/?l=netfilter-devel&m=149064028308496&w=2
> 
> Please take a look at them.

No excuse on me to have missed that. Really sorry. I've just pushed
that to git.

Best regards,
-- 
Eric Leblond <eric@regit.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-15 22:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-13  9:47 [PATCH ulogd2 1/2] ulogd.conf: harmonize log file options with module default values Kaarle Ritvanen
2017-02-13  9:47 ` [PATCH ulogd2 2/2] rotate all default output files Kaarle Ritvanen
2017-03-07 14:00 ` [PATCH ulogd2 1/2] ulogd.conf: harmonize log file options with module default values Eric Leblond
2017-04-12 11:40   ` Kaarle Ritvanen
2017-05-15 22:05     ` Eric Leblond

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.