HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX audit trail filtering
Operating System - HP-UX
1833894
Members
1887
Online
110063
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
Forums
Discussions
Discussions
Discussions
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
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
06-15-2011 12:10 PM
06-15-2011 12:10 PM
HP-UX audit trail filtering
Hello,
I'm trying to setup audit trails filtering based on feautures of DPMS filters.
File with rules contain several rules which intended to exclude some unneeded info
-----
[filter]
-file.pathname =~ /^\/usr\/lib/ || file.pathname =~ /^\/usr\/local\/lib/ || file.pathname =~ /^\/usr\/sbin/ || file.pathname =~ /^\/dev/ || file.pathname =~ /^\/sbin/ || file.pathname =~ /^\/usr\/bin/ || file.pathname =~ /^\/usr\/local\/bin/ || file.pathname =~ /^\/usr\/lib/ || file.pathname =~ /^\/usr\/local\/lib/ || file.pathname =~ /^\/lib/|| file.pathname =~ /^\/usr\/local\/etc/ || file.pathname =~ /^\/etc/ ;
-open.oflag=read-only
[filter]
exclude file.pathname =~ /^\/tmp/ || file.pathname =~ /^\/usr\/man/ || file.pathname =~ /^\/usr\/tmp/ || file.pathname =~ /^\/usr\/local\/doc/ || file.pathname =~ /^\/usr\/local\/share/ || file.pathname =~ /^\/usr\/share/
------------------------------------------
But it doesn't work as intended: exclude open call with read-only flag, exclude everything related to /tmp and other directories and leave everything behind that.
In situation when this file is separated into two files with one rule in each, it works but creates overhead because of pipe usage
# auditdp -S /etc/audit/dpms_filters/rule1 -r /var/.audit/trail -P | auditdp -p -S /etc/audit/dpms_filters/rule2
If there any solution to have only one file with rules?
I'm trying to setup audit trails filtering based on feautures of DPMS filters.
File with rules contain several rules which intended to exclude some unneeded info
-----
[filter]
-file.pathname =~ /^\/usr\/lib/ || file.pathname =~ /^\/usr\/local\/lib/ || file.pathname =~ /^\/usr\/sbin/ || file.pathname =~ /^\/dev/ || file.pathname =~ /^\/sbin/ || file.pathname =~ /^\/usr\/bin/ || file.pathname =~ /^\/usr\/local\/bin/ || file.pathname =~ /^\/usr\/lib/ || file.pathname =~ /^\/usr\/local\/lib/ || file.pathname =~ /^\/lib/|| file.pathname =~ /^\/usr\/local\/etc/ || file.pathname =~ /^\/etc/ ;
-open.oflag=read-only
[filter]
exclude file.pathname =~ /^\/tmp/ || file.pathname =~ /^\/usr\/man/ || file.pathname =~ /^\/usr\/tmp/ || file.pathname =~ /^\/usr\/local\/doc/ || file.pathname =~ /^\/usr\/local\/share/ || file.pathname =~ /^\/usr\/share/
------------------------------------------
But it doesn't work as intended: exclude open call with read-only flag, exclude everything related to /tmp and other directories and leave everything behind that.
In situation when this file is separated into two files with one rule in each, it works but creates overhead because of pipe usage
# auditdp -S /etc/audit/dpms_filters/rule1 -r /var/.audit/trail -P | auditdp -p -S /etc/audit/dpms_filters/rule2
If there any solution to have only one file with rules?
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP