Hi
Can somebody please assist me a bit to know which pattern I should use for the following stack trace:
<event>
<date>2016/06/30 00:00:02</date><severity>ERROR</severity><reqid></reqid><thread>Thread-429878</thread><user>Superuser/Superuser</user><runid>146366100371
8</runid><subsys>JMS</subsys><msgid>JMS0005</msgid><ex>javax.naming.NameNotFoundException</ex>
<msg>JMS0005: Failed to start JMS consumer(s) for 'ConsumerInfo[destinationJndiName='ap.aia.cataloguetranslation.v1.q' connectionFactoryName='SONIC_QCF' j
ndiName='SONIC_JNDI' transportName='ap.aia.cataloguetranslation.v1']'
APPL0065: javax.naming.NamingException exception
javax.naming.NameNotFoundException: /ap.aia.cataloguetranslation.v1.q not found in the specified context
at com.actional.jndi.InitialContextValuesCache$CacheEventsImpl.createCacheItem(InitialContextValuesCache.java:198)
at com.actional.jndi.InitialContextValuesCache$CacheEventsImpl.createCacheItem(InitialContextValuesCache.java:145)
at com.actional.util.Cache$CachedItem.init(Cache.java:573)
at com.actional.util.Cache$CachedItem.getDataWithInit(Cache.java:561)
at com.actional.util.SemaphoreAwareCache.lookup(SemaphoreAwareCache.java:69)
at com.actional.jndi.InitialContextValuesCache.lookup(InitialContextValuesCache.java:132)
at com.actional.jndi.InitialContextCache.lookup(InitialContextCache.java:57)
at com.actional.jms.AbstractJmsMessageListener.init(AbstractJmsMessageListener.java:218)
at com.actional.jms.IntermediaryJmsMessageListenerFactory.createListener(IntermediaryJmsMessageListenerFactory.java:139)
at com.actional.jms.JmsConsumerManager$ConsumerInfo$1.init(JmsConsumerManager.java:470)
at com.actional.jms.ConnectionFacade.doStartConnection(ConnectionFacade.java:118)
at com.actional.jms.ConnectionFacade.startConnection(ConnectionFacade.java:98)
at com.actional.jms.JmsConsumerManager$ConsumerInfo.start(JmsConsumerManager.java:502)
at com.actional.jms.JmsConsumerManager$ConsumerInfo.start(JmsConsumerManager.java:413)
at com.actional.jms.JmsConsumerManager$ConsumerInfo.start(JmsConsumerManager.java:391)
at com.actional.jms.JmsConsumerManager$ConsumerInfo$StartListeningTask$1.run(JmsConsumerManager.java:711)
Nested Exception:
javax.naming.NameNotFoundException: /ap.aia.cataloguetranslation.v1.q not found in the specified context
at com.sonicsw.jndi.mfcontext.MFContext.lookup(MFContext.java:383)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.actional.jndi.InitialContextValuesCache$CacheEventsImpl.lookup(InitialContextValuesCache.java:211)
at com.actional.jndi.InitialContextValuesCache$CacheEventsImpl.createCacheItem(InitialContextValuesCache.java:185)
at com.actional.jndi.InitialContextValuesCache$CacheEventsImpl.createCacheItem(InitialContextValuesCache.java:145)
at com.actional.util.Cache$CachedItem.init(Cache.java:573)
at com.actional.util.Cache$CachedItem.getDataWithInit(Cache.java:561)
at com.actional.util.SemaphoreAwareCache.lookup(SemaphoreAwareCache.java:69)
at com.actional.jndi.InitialContextValuesCache.lookup(InitialContextValuesCache.java:132)
at com.actional.jndi.InitialContextCache.lookup(InitialContextCache.java:57)
at com.actional.jms.AbstractJmsMessageListener.init(AbstractJmsMessageListener.java:218)
at com.actional.jms.IntermediaryJmsMessageListenerFactory.createListener(IntermediaryJmsMessageListenerFactory.java:139)
at com.actional.jms.JmsConsumerManager$ConsumerInfo$1.init(JmsConsumerManager.java:470)
at com.actional.jms.ConnectionFacade.doStartConnection(ConnectionFacade.java:118)
at com.actional.jms.ConnectionFacade.startConnection(ConnectionFacade.java:98)
at com.actional.jms.JmsConsumerManager$ConsumerInfo.start(JmsConsumerManager.java:502)
at com.actional.jms.JmsConsumerManager$ConsumerInfo.start(JmsConsumerManager.java:413)
at com.actional.jms.JmsConsumerManager$ConsumerInfo.start(JmsConsumerManager.java:391)
at com.actional.jms.JmsConsumerManager$ConsumerInfo$StartListeningTask$1.run(JmsConsumerManager.java:711)
</msg>
</event>
This is the part I have to fill in in the filebeat.yml config file:
Mutiline can be used for log messages spanning multiple lines. This is common
# for Java Stack Traces or C-Line Continuation
multiline:
# The regexp Pattern that has to be matched. The example pattern matches all lines starting with [
pattern: ^<event>
What should I choose for the pattern as I would like to have the ERROR, >javax.naming.NameNotFoundException and the JMS0005 field but only till the lines start with "at"
Can somebody please help me, I'm still looking into it but as filebeat is quiet new to me...
Kind regards
Johnny