You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by cooshal <ku...@gmail.com> on 2019/05/17 07:09:40 UTC
Where exactly is cellar log stored?
Hi:
few months back, I had confusions about the Karaf cellar log and the
location of the log file. I had a query in Stack Overflow
(https://stackoverflow.com/questions/54077551/location-of-centralized-cluster-log-file-in-apache-cellar)
as well.
I needed to see if I could modify the log results such that it included the
node alias or some extra info (which I can fetch based on the node ID)
instead of the plain Node IP:Port. With reference to
https://github.com/apache/karaf-cellar/blob/master/log/src/main/java/org/apache/karaf/cellar/log/shell/LogDisplay.java,
I think I can do that with my mbean, as I already have a reference to the
ClusterManager.
So, now my question is, where exactly is the log stored? Is it In-Memory?
Regards,
Cooshal.
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Where exactly is cellar log stored?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Cooshal,
Great, yes please let me know if you need help about Decanter.
Regards
JB
On 20/05/2019 10:28, cooshal wrote:
> Hi again !
>
> you are right. Decanter seems to be the appropriate component to handle such
> things.
>
> I struck into some problems while installing Decanter in my existing
> distribution. Thus, I skipped it for the time being, and moved on to solve
> other issues. I will try again and post the issue here (or may be in a new
> thread).
>
> Regards,
> Cooshal.
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Where exactly is cellar log stored?
Posted by cooshal <ku...@gmail.com>.
Hi again !
you are right. Decanter seems to be the appropriate component to handle such
things.
I struck into some problems while installing Decanter in my existing
distribution. Thus, I skipped it for the time being, and moved on to solve
other issues. I will try again and post the issue here (or may be in a new
thread).
Regards,
Cooshal.
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Where exactly is cellar log stored?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
Decanter can get any log messages from each node and send to a backend.
I don't think it's a good idea to use a MBean to retrieve log.
Regards
JB
On 17/05/2019 12:01, cooshal wrote:
> Hi JB:
>
> thank you for your reply.
>
> Cellar doesn't seem to fit my needs. I do not have enough log information in
> cellar log.
>
> I will try out Decanter. Thanks ! For a better and efficient way, I guess
> its very useful.
>
> In the meantime, I tried out fetching log information (log messages per
> node) from a custom mbean.
>
> I will see how can I integrate Decanter to my scenario.
>
> Regards,
> Cooshal.
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Where exactly is cellar log stored?
Posted by cooshal <ku...@gmail.com>.
Hi JB:
thank you for your reply.
Cellar doesn't seem to fit my needs. I do not have enough log information in
cellar log.
I will try out Decanter. Thanks ! For a better and efficient way, I guess
its very useful.
In the meantime, I tried out fetching log information (log messages per
node) from a custom mbean.
I will see how can I integrate Decanter to my scenario.
Regards,
Cooshal.
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Where exactly is cellar log stored?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Cooshal
First of all, I would recommend to use Decanter and send the log via
Decanter in a storage (like Elasticsearch for instance). That's more
efficient and I'm thinking about deprecated Cellar Log.
Anyway, back on your question: yes, the log messages in Cellar Log are
stored in a distributed in-memory map on the cluster. The eviction
policy and size are pre-configured in etc/hazelcast.xml
(org.apache.karaf.cellar.log distributed map).
Regards
JB
On 17/05/2019 09:09, cooshal wrote:
> Hi:
>
> few months back, I had confusions about the Karaf cellar log and the
> location of the log file. I had a query in Stack Overflow
> (https://stackoverflow.com/questions/54077551/location-of-centralized-cluster-log-file-in-apache-cellar)
> as well.
>
> I needed to see if I could modify the log results such that it included the
> node alias or some extra info (which I can fetch based on the node ID)
> instead of the plain Node IP:Port. With reference to
> https://github.com/apache/karaf-cellar/blob/master/log/src/main/java/org/apache/karaf/cellar/log/shell/LogDisplay.java,
> I think I can do that with my mbean, as I already have a reference to the
> ClusterManager.
>
> So, now my question is, where exactly is the log stored? Is it In-Memory?
>
> Regards,
> Cooshal.
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com