Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Sendmail logs to database
System Administration
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP