- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: apache logfile > 2 gigas
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 02:38 AM
02-02-2004 02:38 AM
apache logfile > 2 gigas
Apache 1.3.26
file system vxfs allow large file.
This week, my apache log file is 2 gigas bit large, and since, no more access are logged but there is no message in the error_log
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 02:53 AM
02-02-2004 02:53 AM
Re: apache logfile > 2 gigas
I think your Apache logfile is limited to the large file parameter on your logical volume. To enable larger files
Online JVS
# fsadm -F vxfs -o largefiles /your_mount_point
Not online JVS
# umount your mount point
# fsadm -F vxfs -o largefiles /dev/rlvolxx
And add the largefiles option in the /etc/fstab.
Hope this helps,
Robert-Ja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 03:02 AM
02-02-2004 03:02 AM
Re: apache logfile > 2 gigas
Made a mistake,
Not online JVS
# umount your_file_system
# fsadm -F vxfs -o largefiles /dev/vgxx/rlvolxx
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 03:05 AM
02-02-2004 03:05 AM
Re: apache logfile > 2 gigas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 03:08 AM
02-02-2004 03:08 AM
Re: apache logfile > 2 gigas
Check -- mount -p. check your file system.
Is apache running properly? Hung etc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 03:46 AM
02-02-2004 03:46 AM
Re: apache logfile > 2 gigas
Just to be shure, could you check next command.
# fsadm -F vxfs /your_apache_filesystem
nomultifsets
largefiles
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 02:23 PM
02-02-2004 02:23 PM
Re: apache logfile > 2 gigas
See man creat64, which mentions
The standard POSIX interfaces may be used by 32-bit applications to
create and access large files if compiled with _FILE_OFFSET_BITS set
to 64.
and
For 64-bit applications, access to large files is automatic, as long
as the underlying file system is enabled for large files. The
interfaces on this man page are available to 64-bit applications, for
convenience in porting, but provide no additional capabilities. The
exception is O_LARGEFILE, which is not visible to 64-bit applications.
To figure out if your app is 32 bit or 64 bit, type
$file [name_of_your_app]
e.g.
$file httpd
If this app is 32 bit (the diagnostic might read something like PA-RISC1.1 shared executable dynamically linked -not stripped), then you've probably got a problem in the way Apache was built.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 03:13 PM
02-02-2004 03:13 PM
Re: apache logfile > 2 gigas
Your website has a massive error_log that can possibly be managable. I can't see how it can be useful. Still for security audit purposes you probably need to keep it.
Run a script to archive it once in a while via cron:
cp logs/error_log /tmp/error_log
> error_log
Run this once a day or whatever to keep that log size down.
Also your apache is a bit out of date and needs to be updated to 1.3.27 to have some critical fixes.
If its on the public internet and their are cgi form scripts, make sure robots.txt exists.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 05:27 PM
02-02-2004 05:27 PM
Re: apache logfile > 2 gigas
For instance, run once a day:
for i in
do
cp $i $i.`date +%w`
>$i
done
This will keep a copy of the files, with the day-of-week as extension, making it possible to search your logfiles back for info. You could also use sequence numbers or things like that. It depends on the speed of growth what is best.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 06:56 PM
02-02-2004 06:56 PM
Re: apache logfile > 2 gigas
When i do "file httpd" the response is
PA-RISC1 shared ......
I will try to compile apache in 64 bits mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 08:33 PM
02-02-2004 08:33 PM
Re: apache logfile > 2 gigas
Why is your logfile (>2Gb) so massive?
Is this much logging effecting the performance of Apache itself?
Could you lower the level of logging, so as to remove any unnecessary messages?
With logs this massive you are in grave danger of missing vital clues to (attempted) attacks, and (potential) security problems.
If your log has to be this large I would suggest that you employ some automated log processing to filter out exceptional or important messages.