

Starfighter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2024
06:00 AM
- 515 Views
SELinux log records
Write the command that will list all SELinux log records that contain
to the following SELinux label: system_u:object_r:httpd_log_t:s0
Trevor "Red Hat Evangelist" Chandler
2 Replies


Starfighter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2024
01:26 PM
- 489 Views
This may depend on whether auditd is running or not (by default it is).
If it is:
# grep 'system_u:object_r:httpd_log_t:s0' /var/log/audit/audit.log
If it isn't (you can search here, too, anyway):
# grep 'system_u:object_r:httpd_log_t:s0' /var/log/messages
You can also look here:
# journalctl | grep 'system_u:object_r:httpd_log_t:s0'
Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Estrella Mountain Community College


Starfighter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2024
07:32 PM
- 449 Views
There you go flexing again Tracy
What I was trying to lead folks in the direction of was:
# journalctl _SELINUX_CONTEXT=system_u:object_r:httpd_log_t:s0
Thanks for your extra spices. Once again, you've proven, there's more ways
than one to skin a cat!!!!
Trevor "Red Hat Evangelist" Chandler
Join the discussion
You must log in to join this conversation.