I'm attempting to tail some linux audit logs in the directory: /var/log/audit/audit.log. I've tried this on AWS linux and also CentOS but either fluent.d simply ignores the file but I set a read permission I get:
"var/observe/audit.log unreadable. It is excluded and would be examined next time."
Without setting any directory permissions on the folder, fluent.d will ignore the file and there is no tailing. I then ran the command: chmod a=r /var/log/audit/ and now the fluent.d logs show that it is trying to read the log but it is unreadable. I've also tried to create a syslink to that directory and read from the file but I get the same error..
Here is my config:
<source>
@type tail
tag linux_logs.raw
path /var/log/audit/audit.log
read_from_head true
pos_file /etc/td-agent/test.pos
<parse>
@type regexp
expression /(?<message>.+)/
</parse>
</source>
####
## Filter descriptions:
##
<filter **>
@type record_transformer
<record>
hostname "${hostname}"
timestamp "${time}"
</record>
</filter>
####
## Output descriptions:
##
<match **>
@type http
open_timeout 2
headers {"Authorization":"Bearer <token> <token2>"}
<format>
@type json
</format>
<buffer>
@type memory
flush_interval 10s
compress gzip
</buffer>
</match>
The logs are trying to read the file but it is "Unreadable and will be excluded and would be examined next time".

How do I tail this file??