Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62C74172C6 for ; Sat, 28 Mar 2015 23:45:08 +0000 (UTC) Received: (qmail 27947 invoked by uid 500); 28 Mar 2015 23:45:02 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 27900 invoked by uid 500); 28 Mar 2015 23:45:02 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 27890 invoked by uid 99); 28 Mar 2015 23:45:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Mar 2015 23:45:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dferradal@gmail.com designates 209.85.212.173 as permitted sender) Received: from [209.85.212.173] (HELO mail-wi0-f173.google.com) (209.85.212.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Mar 2015 23:44:37 +0000 Received: by wibgn9 with SMTP id gn9so77524687wib.1 for ; Sat, 28 Mar 2015 16:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=OOZo3j2jCwDfqnyLOUNutonP5S/9BwcRUrUeUulv1RI=; b=GKbjawKJ9oIPnj5PvQ3ENkgoAj6jYooO3EK+6nssxtyBxoyucRrvJ8koNPCj9BxvXN 5u5c3271j7Jw5iBLO9WtlYSeID1yA5HxnLq6zNa+jLcYf4SuqLMlg+ZNthIYNpNqI0QZ wvZiazs/C1DrZm5T6bpFYCCv8D3CftcfpayXcyItmfOb/TDpplIj5VBjbJOVI5VckKo8 E3q9ecLqTcMYNRQwmur3E5GYGaFJPF1nbFMU4StPge1aaj2Mc83aIsceZxmZ8K2e82Wq 1FuSKJM4FsmI5kHRvl+9UcV+qEMBLc52BdtJprCgdHXhpdA1Dsx+AGYaQD88/5Zx/GN7 kAzw== X-Received: by 10.180.103.170 with SMTP id fx10mr9218006wib.57.1427586141536; Sat, 28 Mar 2015 16:42:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.194.137 with HTTP; Sat, 28 Mar 2015 16:42:00 -0700 (PDT) In-Reply-To: <5517046B.5020003@rimkus.it> References: <551701AF.4000807@rimkus.it> <5517046B.5020003@rimkus.it> From: Daniel Date: Sun, 29 Mar 2015 00:42:00 +0100 Message-ID: To: "" Content-Type: multipart/alternative; boundary=f46d0418283ada4889051261cc20 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] question about roatelogs -n --f46d0418283ada4889051261cc20 Content-Type: text/plain; charset=UTF-8 2015-03-28 20:43 GMT+01:00 Jonny Rimkus : > > Hello, > I've a question to the rotatelogs command. > I'm using following Apache Version: > > Server version: Apache/2.4.7 (Ubuntu) > Server built: Mar 10 2015 13:05:59 > > I'm using the rotatelogs command in my Vhost as follows: > "|/usr/bin/rotatelogs -p /opt/bin/apacheloguser -n 3 /path/to/logfile > 10M" combined > > according to the man page it works as expected, > when logfile size reaches 10MB it: > 1. creates a new File: logfile.1 and starts logging to this file > --> when logfile.1 reaches 10MB: > creates a new file: logfile.2 and start logging to this file > > I would like to know if it is possible to make this behaviour possible: > > 1. rename logfile.1 to logfile.2 > 2. rename logfile to logfile.1 > 3. create new file logfile and start logging to this file > > Thanks in advance and > Kind regards > Jonny Rimkus > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > Logrotate from your linux distrubution will do exactly just that. Maybe that's what you want to use instead of rotatelogs. -- *Daniel Ferradal* IT Specialist email dferradal@gmail.com linkedin es.linkedin.com/in/danielferradal --f46d0418283ada4889051261cc20 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2015-03-28 20:43 GMT+01:00 Jonny Rimkus <jonny@rimkus.it>:

Hello,
I've a question to the rotatelogs command.
I'm using following Apache Version:

Server version: Apache/2.4.7 (Ubuntu)
Server built:=C2=A0 =C2=A0Mar 10 2015 13:05:59

I'm using the rotatelogs command in my Vhost as follows:
"|/usr/bin/rotatelogs -p /opt/bin/apacheloguser -n 3 /path/to/logfile<= br> 10M" combined

according to the man page it works as expected,
when logfile size reaches 10MB it:
1. creates a new File: logfile.1 and starts logging to this file
--> when logfile.1 reaches 10MB:
creates a new file: logfile.2 and start logging to this file

I would like to know if it is possible to make this behaviour possible:

1. rename logfile.1 to logfile.2
2. rename logfile to logfile.1
3. create new file logfile and start logging to this file

Thanks in advance and
Kind regards
Jonny Rimkus




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



Logrotate from your linux dis= trubution will do exactly just that. Maybe that's what you want to use = instead of rotatelogs.


--
Daniel Ferradal
IT Specialist

email =C2=A0 =C2=A0 =C2=A0 = =C2=A0=C2=A0dferradal@gmail.com
linkedin =C2=A0 =C2= =A0 = es.linkedin.com/in/danielferradal
--f46d0418283ada4889051261cc20--