Mike,
Looking into this cause a few major detours as I found some issues in our handling of components with enabled log event sources. But I don't think any of them are related to your problem. In the end I think it may be your log entry format that is the issue. RHQ is very strict right now about the log entry format after the timestamp portion.
Your Date format looks valid. But, given a log entry like you posted:
05/01/2012 10:23:40,329 [ERROR] [ ] [org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader] Unparsable
I think you won't ever match because of the brackets around the severity. I could be wrong, but I think you need:
05/01/2012 10:23:40,329 ERROR [ ] [org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader] Unparsable
Give that a try...
On 1/9/2012 5:49 PM, Mike Hepple wrote:
Hi Jay,
Many thanks for having a look. The agent was definitely up when I was saving the connection settings. One other thing I thought of - the RHQ agents/server aren't running as root, but it is as the same user as JBoss, so they shouldn't have any problems accessing the files.
Appreciate any and all thoughts!
Mike
On Mon, Jan 9, 2012 at 8:12 PM, Jay Shaughnessy <jshaughn@redhat.com mailto:jshaughn@redhat.com> wrote:
Mike, Is there any chance you enabled the Log Event Source (edited and saved the connection settings) while the agent was down? If so, can you try editing and saving the configuration when the agent is up? I'm looking into this further... On 1/6/2012 7:50 PM, Mike Hepple wrote: Hi all, I'm having great trouble getting my JBoss AS4 servers to send events to the RHQ server. I've set up an event source as follows: Enabled: Yes Log file path: /opt/jboss/instances/<name>/log/server.log Includes Pattern: <unset> Minimum Severity: <unset> Date Format: dd/MM/yyyy HH:mm:ss,SSS I then poke my app for a while to produce a log message, e.g. 05/01/2012 10:23:40,329 [ERROR] [ ] [org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader] Unparsable lastModified : @lastModified@ 05/01/2012 10:23:49,347 [ INFO] [jbloggs] [com.myapp.search.SearchServiceImpl] Search Query: Select id from object where date > 04-01-2012 However, the event screen for this server contains no events, even after a week. Appreciate any help you can provide, Mike _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org <mailto:rhq-users@lists.fedorahosted.org> https://fedorahosted.org/mailman/listinfo/rhq-users _______________________________________________ rhq-users mailing list rhq-users@lists.fedorahosted.org <mailto:rhq-users@lists.fedorahosted.org> https://fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/rhq-users