- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail logs to database
Operating System - HP-UX
1755657
Members
3948
Online
108837
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО12-03-2004 10:17 PM
тАО12-03-2004 10:17 PM
Sendmail logs to database
Hi,
Is it possible to log details which are being logged to /var/adm/syslog/mail.log to an oracle database ?
I am actually looking at logging all mails being sent from a particular user to an oracle database.
Regards,
Franklin.
Is it possible to log details which are being logged to /var/adm/syslog/mail.log to an oracle database ?
I am actually looking at logging all mails being sent from a particular user to an oracle database.
Regards,
Franklin.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2004 10:58 AM
тАО12-04-2004 10:58 AM
Re: Sendmail logs to database
Not directly to a database. Syslog is designed to write to files.
You will have to use a script to copy the log files into the database.
Depending on the database its not a very hard script to write, then you have to run it regularly with cron.
Another way to do it is like this:
tail -f /var/adm/syslog/mail.log > script
script processes the output as it happens into your database.
SEP
You will have to use a script to copy the log files into the database.
Depending on the database its not a very hard script to write, then you have to run it regularly with cron.
Another way to do it is like this:
tail -f /var/adm/syslog/mail.log > script
script processes the output as it happens into your database.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
тАО12-04-2004 12:40 PM
тАО12-04-2004 12:40 PM
Re: Sendmail logs to database
Hi Franklin,
/var/adm/syslog/mail.log is a flat file. Just filter out the selective data to another file and then read the flat file into the database.
The entry in the mail.log file is not a standard entry. if the mail is deferred, that also is logged to the file.
Hope this helps.
Regds
/var/adm/syslog/mail.log is a flat file. Just filter out the selective data to another file and then read the flat file into the database.
The entry in the mail.log file is not a standard entry. if the mail is deferred, that also is logged to the file.
Hope this helps.
Regds
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP