@Plugin(name="ElasticAppender",
category="Core",
elementType="appender",
printObject=true)
public class ElasticAppender
extends org.apache.logging.log4j.core.appender.db.AbstractDatabaseAppender<ElasticManager>
| Modifier and Type | Method and Description |
|---|---|
static ElasticAppender |
createAppender(String name,
String elastic_local,
String elastic_cluster,
String index,
String indexRotate,
String type,
String node,
String service,
Integer bufferSize,
Integer flushSeconds,
boolean sync,
boolean ignoreExceptions,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.core.Filter filter) |
ElasticManager |
getElasticManager() |
append, getLayout, getManager, replaceManager, start, stoperror, error, error, getHandler, getName, ignoreExceptions, parseInt, setHandler, toStringaddFilter, getFilter, hasFilter, isFiltered, removeFilterequals, getState, hashCode, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStoppingpublic ElasticManager getElasticManager()
@PluginFactory public static ElasticAppender createAppender(@PluginAttribute(value="name") String name, @PluginAttribute(value="uri") String elastic_local, @PluginAttribute(value="cluster") String elastic_cluster, @PluginAttribute(value="index",defaultString="logstash") String index, @PluginAttribute(value="indexRotate",defaultString="DAY") String indexRotate, @PluginAttribute(value="type",defaultString="logs") String type, @PluginAttribute(value="node") String node, @PluginAttribute(value="service") String service, @PluginAttribute(value="bufferSize",defaultInt=5000) Integer bufferSize, @PluginAttribute(value="flushSeconds",defaultInt=30) Integer flushSeconds, @PluginAttribute(value="manager",defaultBoolean=false) boolean sync, @PluginAttribute(value="ignoreExceptions",defaultBoolean=false) boolean ignoreExceptions, @PluginAttribute(value="level") org.apache.logging.log4j.Level level, @PluginElement(value="Filters") org.apache.logging.log4j.core.Filter filter)
Copyright © 2015. All rights reserved.