How do you create a flex connector that reads multiple files in the same directory?
I noticed that the siteminder connector reads multiple files in the same folder. I am trying to create a flex for a platform that uses multiple files in the same folder. I noticed this in the siteminder agent.properties file:
I took out the file locations but each of those has the exact same path. Each has a different file name, of course. What is .smaccess triggering? Do I need a special script for the flex connector I want to create?
You probably can't just replicate that mechanism from the siteminder connector.
I would asume that a real-time folder reader is the way to go.
Do all the files have the same format? Can you cover then with a single parser?
yes they do because they were using a folder reader flex. I just tried the /*.log and it can't read it. it's literally looking for *.log. Did I do something wrong?
Are you guys using multi folder follower connectors? If so you can just set the folder path, and for each entry in the list of folders, specify the appropriate wildcard in agent.properties to read the file that you are interested in. You can configure each folder/file to be handled by the same flex parser.
What does the entry look like inside the properties file to tell which parser to use. I have it where it is able to read all files with .txt and rename it to .processed when it is done. The issue is that it is not using my custom parser since all the information is being dumped into the message field.
For a general syslog style file, you could use something like this (for some reason the file has double /'s) which will use the system subagent for syslog events: