Re: Frage zum rotatelogs Befehl

2015-03-28 Thread Bjoern Hoehrmann
* Jonny Rimkus wrote:
Ich würde gerne folgendes Verhalten erreichen:

wenn 10MB erreicht sind:
1. benenne logdatei in logdatei.1 um
2. erstelle eine neue logdatei und logge dort weiter

wenn 10MB erreicht sind:
1. benenne logdate.1 in logdatei.2 um
2. benenne logdatei in logdatei.1 um
3. erstelle neue logdatei und logge dort weiter

ist das möglich?

Und das schlägt beim nächsten Mal dann fehl, weil `logdatei.2` bereits
existiert? Oder soll die jedes Mal überschrieben werden? Oder sollen
jedes Mal alle Logdateien umbenannt werden? Was, wenn eine der Dateien
nicht umbenannt werden kann (z.B. weil ein anderer Prozess grad auf die
Datei zugreift)?
-- 
Björn Höhrmann · mailto:bjo...@hoehrmann.de · http://bjoern.hoehrmann.de
D-10243 Berlin · PGP Pub. KeyID: 0xA4357E78 · http://www.bjoernsworld.de

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



[users@httpd] question about roatelogs -n

2015-03-28 Thread 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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Upgrading from OpenSSL 0.9.8 to OpenSSL 1.0.2a

2015-03-28 Thread Eric Covener
On Sat, Mar 28, 2015 at 9:32 PM, Cathy Fauntleroy
cathy.fauntle...@vdtg.com wrote:
 I need to enable TLS 1.2 but since I currently have Apache 2.2.25 w/OpenSSL
 0.9.8 installed, I can’t do that.  So, I left Apache 2.2.25 in place,
 installed OpenSSL 1.0.2a, and created the new openssl.cnf environment
 variables.  The install was successful, the correct version is showing, but
 TLS 1.2 is still not enabled.  Any ideas on what I am missing?


You need to compile httpd against that openssl.

-- 
Eric Covener
cove...@gmail.com

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



Re: [users@httpd] question about roatelogs -n

2015-03-28 Thread Daniel
2015-03-28 20:43 GMT+01:00 Jonny Rimkus jo...@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:   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-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@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 dferra...@gmail.com
linkedin es.linkedin.com/in/danielferradal


Frage zum rotatelogs Befehl

2015-03-28 Thread Jonny Rimkus

Hallo, ich habe folgendes Problem:

ich verwende den rotatelogs Befehl um die Log Dateien vom Apache
beim überschreiten einer bestimmten Größe umzubenennen:

 CustomLog |/usr/bin/rotatelogs -p /opt/bin/apacheloguser -n 3
/pfad/zur/logdatei 10M combined

laut man-Page funktioniert das auch wie erwartet:
wenn 10MB erreicht sind:
logdatei.1 wird erstellt und dort wird weiter geloggt
wenn 10MB erreicht sind:
logdate.2 wird erstellt und dort wird weiter geloggt.

Ich würde gerne folgendes Verhalten erreichen:

wenn 10MB erreicht sind:
1. benenne logdatei in logdatei.1 um
2. erstelle eine neue logdatei und logge dort weiter

wenn 10MB erreicht sind:
1. benenne logdate.1 in logdatei.2 um
2. benenne logdatei in logdatei.1 um
3. erstelle neue logdatei und logge dort weiter

ist das möglich?

Vielen dank und Gruß
Jonny




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



Re: Frage zum rotatelogs Befehl

2015-03-28 Thread Jonny Rimkus
nein, ich meinte das so:

der Parameter -n3 gibt ja im Moment auch an ab wann überschrieben wird,
nämlich nach der 3. Umbenennung.

Außerdem stellen sich die unten genannten Probleme doch jetzt auch,
rotatelogs verwendet halt nur die Datei logdatei.1 nach dem ersten
umbenennen und ich möchte das quasi genau andersherum. nehmen wir das
Beispiel -n2:

aktuelles verhalten:
logdatei 10MB
logdatei.1 wird erstellt und verwendet
logdatei 10MB
logdatei.2 wird erstellt und verwendet
logdatei 10MB
logdatei 1 wird überschrieben


ich würde gerne das erreichen:
logdatei 10MB
umrennen in logdatei.1

logdatei 10MB
logdatei.1 in logdatei.2 umbenennen
logdatei in logdatei.1 umbenennen

logdatei 10MB
logdatei.2 löschen
logdatei.1 in logdatei.2 umbenennen
logdatei in logdatei.1 umbenennen
...

also quasi genau anders herum

Gruß Jonny


Am 28.03.2015 um 21:01 schrieb Bjoern Hoehrmann:
 * Jonny Rimkus wrote:
 Ich würde gerne folgendes Verhalten erreichen:

 wenn 10MB erreicht sind:
 1. benenne logdatei in logdatei.1 um
 2. erstelle eine neue logdatei und logge dort weiter

 wenn 10MB erreicht sind:
 1. benenne logdate.1 in logdatei.2 um
 2. benenne logdatei in logdatei.1 um
 3. erstelle neue logdatei und logge dort weiter

 ist das möglich?
 
 Und das schlägt beim nächsten Mal dann fehl, weil `logdatei.2` bereits
 existiert? Oder soll die jedes Mal überschrieben werden? Oder sollen
 jedes Mal alle Logdateien umbenannt werden? Was, wenn eine der Dateien
 nicht umbenannt werden kann (z.B. weil ein anderer Prozess grad auf die
 Datei zugreift)?
 

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



[users@httpd] Upgrading from OpenSSL 0.9.8 to OpenSSL 1.0.2a

2015-03-28 Thread Cathy Fauntleroy
Good Evening,

 

I need to enable TLS 1.2 but since I currently have Apache 2.2.25 w/OpenSSL
0.9.8 installed, I can't do that.  So, I left Apache 2.2.25 in place,
installed OpenSSL 1.0.2a, and created the new openssl.cnf environment
variables.  The install was successful, the correct version is showing, but
TLS 1.2 is still not enabled.  Any ideas on what I am missing?

 

Thanks.



Cathy Fauntleroy, Security+

Van Dyke Technology Group

Email:  cathy.fauntle...@vdtg.com mailto:cathy.fauntle...@vdtg.com 

Office:  (443) 832-4768