rotate modsec log with logrotate in the global configuration


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users rotate modsec log with logrotate in the global configuration
# 1  
Old 09-02-2011
rotate modsec log with logrotate in the global configuration

Hello Experts,

I have an apache 2.2.17 on solaris 10 that I am not sure if I, could list the following in the global settings in httpd.conf. I tested it in the Virtual host section of httpd.conf and, it works but, not sure if I can do it in the global settings.
Any help would be greatly appreciated.
Here is what I am trying to do

CustomLog "|/app/apache/bin/rotatelogs /app/apache/logs/modsec_audit1.log 5M" combined

I have one modsec_audit1.log file for all of my virtual host instances and, need to set this up in the global section in httpd.conf to rotate the modsec log.

thanks a million
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Apache log rotate configuration

HI i was trying to configure logrotate for my apache server and it's not working properly. Os: Red Hat 6 here is my lodrotate configuration /var/log/httpd/*log { daily missingok notifempty sharedscripts compress delaycompress postrotate ... (3 Replies)
Discussion started by: bentech4u
3 Replies

2. UNIX for Advanced & Expert Users

Apache log rotate configuration

HI i was trying to configure logrotate for my apache server and it's not working properly. here is my lodrotate configuration /var/log/httpd/*log { daily missingok notifempty sharedscripts compress delaycompress postrotate /sbin/service httpd... (1 Reply)
Discussion started by: bentech4u
1 Replies

3. UNIX for Dummies Questions & Answers

When to use sharedscripts in a Logrotate Configuration?

Hello All, OS: SLES 11.3 x86_64 Should I be using the sharedscripts config command for my logrotate configuration, given the info below? I made it so the server sending the log data will do Syslog pushes of 3 types of logs to my SLES server, and all 3 logs will be written into the same... (3 Replies)
Discussion started by: mrm5102
3 Replies

4. Shell Programming and Scripting

Log rotate

Hi, I have below script in logrotate.d to rotate logs. logs are not rotating after the file grow to 1k, do you have any idea? Is it because of it just only 1K? Please let me know if the below syntax is in correct. # more trotate /sourcepath/*/servers/*/logs/*log... (2 Replies)
Discussion started by: lpprasad321
2 Replies

5. UNIX for Dummies Questions & Answers

Logrotate configuration

Hi all, i would like to have a configuration on log rotate that will gzip my log files with date pattern %Y-%m-%d move these files to an olddir, but i want to avoid that the logrotate removes my files from old dir newer than 180 days i applyied this config #logrotate config to compress files... (3 Replies)
Discussion started by: charli1
3 Replies

6. Shell Programming and Scripting

Logrotate - I am not able to rotate files using logrotate

I have written script which is working in Home directory perfectly and also compressing log files and rotating correctly. But, when i try to run script for /var/log/ i am able to get compressed log files but not able to get rotation of compressed log files. Please suggest. I am using below command... (5 Replies)
Discussion started by: VSom007
5 Replies

7. UNIX for Dummies Questions & Answers

logrotate ignore 'rotate' setting.

the 'rotate' setting in my logrotate configurations is being ignored when run from the crontab. I have tested my configurations using the "-d" option, the rotation count is working when I do the test. Here are my configuration settings, is there anything I am doing wrong? # cat -n... (5 Replies)
Discussion started by: frankkoenen
5 Replies

8. UNIX for Advanced & Expert Users

Logrotate configuration problem

Hi, I have the following configuration file: /logs/system/mindundi/* { rotate 0 daily missingok sharedscripts postrotate find /logs/system/mindundi/ -name "*log" -mtime +15 -exec /bin/rm -f {} \; endscript } I want to save only... (6 Replies)
Discussion started by: mitchbcn
6 Replies

9. Shell Programming and Scripting

Rotate log files

I have a big log,separated by the character:, one of the fields is the date in the format "day / month / year" and I need to remove the lines prior to 30 days. Can help me? (7 Replies)
Discussion started by: msanbrug
7 Replies

10. UNIX for Advanced & Expert Users

log rotate

hi , what is the meaning of log rotate? how do i rotate /var/adm/wtmps log and gzip it? (6 Replies)
Discussion started by: cromohawk
6 Replies
Login or Register to Ask a Question
nss_pcache(8)															     nss_pcache(8)

NAME
nss_pcache - Helper program used to store token password pins SYNOPSIS
nss_pcache <semid> <fips on/off> <directory> [prefix] DESCRIPTION
A helper program used by the Apache httpd mod_nss plug-in to store the NSS PKCS #11 token password pins between restarts of Apache. Whenever an Apache httpd process configured to use the mod_nss plug-in is started, this program will be automatically invoked via reference to the mod_nss configuration file stored under /etc/httpd/conf.d/nss.conf which contains the following default entry: # Pass Phrase Helper: # This helper program stores the token password pins between # restarts of Apache. # # NOTE: Located at '/usr/sbin/nss_pcache' prior # to 'mod_nss-1.0.8-22'. # NSSPassPhraseHelper /usr/libexec/nss_pcache OPTIONS
<semid> The semaphore which corresponds to the mod_nss plug-in registered with the Apache httpd process during startup. <fips on/off> Specifies whether FIPS mode should be enabled, on, or disabled, off. By default, FIPS mode is disabled, and no variable is speci- fied in /etc/httpd/conf.d/nss.conf. To enable FIPS mode, establish password access for the specified NSS security databases, and specify the following variable in /etc/httpd/conf.d/nss.conf: NSSFIPS on <directory> Specifies the destination directory of the NSS databases that will be associated with this executable specified by the following entry in /etc/httpd/conf.d/nss.conf: # Server Certificate Database: # The NSS security database directory that holds the # certificates and keys. The database consists # of 3 files: cert8.db, key3.db and secmod.db. # Provide the directory that these files exist. NSSCertificateDatabase /etc/httpd/alias [prefix] Optional prefix to attach prior to the names of the NSS certificate and key databases contained in the directory referenced by the previous argument and specified by the following entry in /etc/httpd/conf.d/nss.conf (must be uncommented in order to be utilized): # Database Prefix: # In order to be able to store multiple NSS databases # in one directory they need unique names. This option # sets the database prefix used for cert8.db and key3.db. #NSSDBPrefix my-prefix- BUGS
Report bugs to http://bugzilla.redhat.com. AUTHORS
Rob Crittenden <rcritten@redhat.com>. COPYRIGHT
Copyright (c) 2013 Red Hat, Inc. This is licensed under the Apache License, Version 2.0 (the "License"); no one may use this file except in compliance with the License. A copy of this license is available at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITH- OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Rob Crittenden Jul 1 2013 nss_pcache(8)