I’'ve written a perl script which is designed to take the XML output from the Jive Messenger IM audit log and put it into a MySQL database. The script was for real-time conversion and in order to do this was setup to read from a file pipe. I used the mkfifo command to create a pipe called jive.audit-0.log which is the filename used to log IM messages. Testing using a previously made log file worked perfectly.
The problem came in when I attempted to have Jive Messenger actually use this pipe to send the XML to my script. For some reason, the pipe was replaced with a normal log file. Is this typical behavior for for Jive Messenger?
I can’‘t use chattr to make the pipe immutable, so I kept the pipe write access for the user, but removed it for the directory so that it could not delete the file. However, Jive Messenger does not write to the pipe. I’'ve been able to cat the test log to the pipe as the jive user and know that the pipe works.