Hi,

About your first error, you featuresBoot is not correct, you can compare
with a standard distro. You should use stage to be sure of some startup
think.

Secondly, the IllegalStateException in the regex parser has been fixed
on Decanter 2.3.0-SNAPSHOT, but it's not a blocker for the installation.

Now, decanter collects all JMX metrics and log and send into the log
appender. The log appender is sending all in ${karaf.data}/decanter by
default. See etc/org.apache.karaf.decanter.appender.file.cfg.

I'm suggesting you to take a look on:

http://karaf.apache.org/manual/decanter/latest-2/html/
http://blog.nanthrax.net/?p=715

You said you wanted a log file, so, decanter appender file create a file
with all collected events/metrics.

Regards
JB

On 24/05/2019 10:12, cooshal wrote:
> Hi again:
> 
> I have some more confusions and errors as well.
> 
> First the confusion:
> 
> My boot features config looks like:
> 
> featuresBoot = \
>     standard, \
>     cellar, \
>     camel-sql, \
>     camel-jms, \
>     jdbc, \
>     dw-datasource, \
>     broker-datasource, \
>     shared-utils, \
>     jms, \
>     framework, \
>     service-wrapper, \
>     camel, \
>     jndi, \
>     transaction, \
>     jolokia, \
>     decanter
> 
> I added decanter manually for testing scenarios. I will add it in my custom
> distribution assembly later.
> 
> I still get the same issue as in the original post. But, restarting the node
> kind of resolves this issue. I will have to inspect further on it.
> 
> I did:
> 
> 1. > feature:repo-add decanter
> 2. > feature:install decanter-appender-file 
> 
> It was waiting for eventadmin. Then I installed eventadmin as well. Thus,
> its started as well.
> 
> I see the decanter bundles are in active state.
> 
> In the logs, I have the following error:
> 
> ERROR [FelixStartLevel] [org.apache.karaf.decanter.parser.regex(9)] The
> activate method has thrown an exception
> java.lang.IllegalStateException: regex property is required
>         at
> org.apache.karaf.decanter.parser.regex.RegexParser.activate(RegexParser.java:51)
> ~[?:?]
>         at
> org.apache.karaf.decanter.parser.regex.RegexParser.activate(RegexParser.java:46)
> ~[?:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:?]
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
>         at java.lang.reflect.Method.invoke(Method.java:497) ~[?:?]
>         at
> org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:229)
> ~[59:org.apache.felix.scr:2.0.14]
> 
> Is this specific to decanter?
> 
> Now, my curiosity is, how can I make use of the logs that are collected and
> appended(where?).
> 
> Does decanter expose some API to access these logs or does it work only the
> other way around (push to respective appenders?)
> 
> Sorry, it's a bit long post, but I am totally confused with these things.
> 
> Regards,
> Cooshal. 
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to