Hi,

Considering you have instance A as client and intance B as master for 
collecting all the cluster logs.

You have to configure your instances like this:

Instance A:

collector-log
appender-rest => pull POST message to http://ip-instance-B:8181/decanter/collect

Instance B:
collector-rest-servlet => publish to http://ip-instance-B:8181/decanter/collect

and then you can add some storage appender in Instance B to pull data to 
ElasticSearch, Cassandra...

regards,

François
fpa...@apache.org

Le 30/03/2020 à 12:42, dzoni a écrit :
> thank u very much for ur fast answers
>
> ok i changed now the config-file like this
>
> *org.apache.karaf.decanter.collector.rest-1.cfg*
> url=http://localhost:8181
> paths=decanter/collect
>
> *org.apache.karaf.decanter.appender.rest.cfg*
> uri=http://localhost:8181/decanter/collect
>
> the Server-Side don't show any warn-messges more
>
> but on the Client side i'm getting now following warns:
> Can't request REST service
> java.io.IOException: Server returned HTTP response code: 405 for URL:
> http://localhost:8181/decanter/collect
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
> ~[?:1.8.0_242]
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
> ~[?:1.8.0_242]
>         at
> org.apache.karaf.decanter.collector.rest.RestCollector.run(RestCollector.java:97)
> [!/:?]
>         at
> org.apache.karaf.scheduler.core.QuartzJobExecutor.execute(QuartzJobExecutor.java:60)
> [!/:?]
>         at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [!/:?]
>         at
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
> [!/:?]
>
>
> thanks for response
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Reply via email to