ElasticSearch log management

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ElasticSearch log management

IronMike
Does ElasticSearch roll logs? Does it create new log with different name everyday?
I would like to know how to manage logs, I would like to keep last 10 days worth of logs, but not more that that, as they can be very big.
Any ideas What Elasticsearch already does and what I need to do in order to manage logs?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/61f7ff1c-021e-4aa9-bffd-ba72a6837c37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ElasticSearch log management

Ivan Brusic
Elasticsearch uses log4j for logging, so all logging configuration can be done via the log4j config file logging.xml


The default type is dailyRollingFile, which as the name states, rotates the log file daily.

-- 
Ivan


On Mon, Jun 30, 2014 at 8:02 AM, IronMan2014 <[hidden email]> wrote:
Does ElasticSearch roll logs? Does it create new log with different name everyday?
I would like to know how to manage logs, I would like to keep last 10 days worth of logs, but not more that that, as they can be very big.
Any ideas What Elasticsearch already does and what I need to do in order to manage logs?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/61f7ff1c-021e-4aa9-bffd-ba72a6837c37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQD2AV3Kk3iZbG8%3DCSGJ4PR074c2X_Bin_PvKppnJHh7GA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ElasticSearch log management

Nikolas Everett



On Mon, Jun 30, 2014 at 1:51 PM, Ivan Brusic <[hidden email]> wrote:
Elasticsearch uses log4j for logging, so all logging configuration can be done via the log4j config file logging.xml


The default type is dailyRollingFile, which as the name states, rotates the log file daily.

That last one is an erb file so don't use it verbatim - just use it for inspiration if you need it.

Nik

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPmjWd3LXqpE41xwL6fLgfqnGU%2BBKvn94kY-ktO13WRAdOeVBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ElasticSearch log management

IronMike
In reply to this post by Ivan Brusic
Thanks, So do you keep all the logs? How do you delete old ones?

On Monday, June 30, 2014 1:51:13 PM UTC-4, Ivan Brusic wrote:
Elasticsearch uses log4j for logging, so all logging configuration can be done via the log4j config file logging.xml

<a href="https://github.com/elasticsearch/elasticsearch/blob/master/config/logging.yml" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Felasticsearch%2Felasticsearch%2Fblob%2Fmaster%2Fconfig%2Flogging.yml\46sa\75D\46sntz\0751\46usg\75AFQjCNEu80Xj9zF6VmTO1YGfCtdt5QyEfQ';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Felasticsearch%2Felasticsearch%2Fblob%2Fmaster%2Fconfig%2Flogging.yml\46sa\75D\46sntz\0751\46usg\75AFQjCNEu80Xj9zF6VmTO1YGfCtdt5QyEfQ';return true;">https://github.com/elasticsearch/elasticsearch/blob/master/config/logging.yml

The default type is dailyRollingFile, which as the name states, rotates the log file daily.

-- 
Ivan


On Mon, Jun 30, 2014 at 8:02 AM, IronMan2014 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="TM63u6yba7oJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">sabda...@...> wrote:
Does ElasticSearch roll logs? Does it create new log with different name everyday?
I would like to know how to manage logs, I would like to keep last 10 days worth of logs, but not more that that, as they can be very big.
Any ideas What Elasticsearch already does and what I need to do in order to manage logs?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="TM63u6yba7oJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">elasticsearc...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/elasticsearch/61f7ff1c-021e-4aa9-bffd-ba72a6837c37%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/elasticsearch/61f7ff1c-021e-4aa9-bffd-ba72a6837c37%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;" onclick="this.href='https://groups.google.com/d/msgid/elasticsearch/61f7ff1c-021e-4aa9-bffd-ba72a6837c37%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;">https://groups.google.com/d/msgid/elasticsearch/61f7ff1c-021e-4aa9-bffd-ba72a6837c37%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c5ce353f-7275-40cc-b2bc-6a8376dbb091%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.