- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a212830
Champion
07-28-2014
06:49 AM
Hi,
I need to monitor two catalina logfiles that are in the same directory, but have different formats (and sourcetypes).
The naming convention is ../catalina.YYYY-MM-DD.log and catalina.out.YYYY-MM-DD.log
How would I setup inputs to handle this?
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

somesoni2
Revered Legend
07-28-2014
07:14 AM
Try this in the inputs.conf
Updated
[monitor://your_directory/catalina.*.log]
disabled = false
followTail = 0
sourcetype = your_sourcetype1
whitelist = catalina\.\d+-\d+-\d+\.log
[monitor://your_directory/catalina.out.*.log]
disabled = false
followTail = 0
sourcetype = your_sourcetype2
whitelist = catalina\.out\.\d+-\d+-\d+\.log
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

somesoni2
Revered Legend
07-28-2014
07:14 AM
Try this in the inputs.conf
Updated
[monitor://your_directory/catalina.*.log]
disabled = false
followTail = 0
sourcetype = your_sourcetype1
whitelist = catalina\.\d+-\d+-\d+\.log
[monitor://your_directory/catalina.out.*.log]
disabled = false
followTail = 0
sourcetype = your_sourcetype2
whitelist = catalina\.out\.\d+-\d+-\d+\.log
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

somesoni2
Revered Legend
07-28-2014
08:00 AM
My bad, I didn't read the question properly. Try the updated answer.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a212830
Champion
07-28-2014
07:35 AM
I have different sourcetypes that need to be mapped - the out goes to one sourcetype, the other to a different one. This doesn't appear to address that.
