Class LogsIngester
- java.lang.Object
-
- com.wavefront.agent.logsharvesting.LogsIngester
-
public class LogsIngester extends Object
Consumes log messages sent toingestLog(LogsMessage)
. Configures and starts the periodic flush of consumed metric data to Wavefront.- Author:
- Mori Bellamy ([email protected])
-
-
Constructor Summary
Constructors Constructor Description LogsIngester(ReportableEntityHandlerFactory handlerFactory, Supplier<LogsIngestionConfig> logsIngestionConfigSupplier, String prefix)
Create an instance using system clock.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush()
void
ingestLog(LogsMessage logsMessage)
void
start()
-
-
-
Field Detail
-
logger
protected static final Logger logger
-
-
Constructor Detail
-
LogsIngester
public LogsIngester(ReportableEntityHandlerFactory handlerFactory, Supplier<LogsIngestionConfig> logsIngestionConfigSupplier, String prefix) throws ConfigurationException
Create an instance using system clock.- Parameters:
handlerFactory
- factory for point handlers and histogram handlerslogsIngestionConfigSupplier
- supplied configuration object for logs harvesting. May be reloaded. Must return "null" on any problems, as opposed to throwing.prefix
- all harvested metrics start with this prefix- Throws:
ConfigurationException
-
-
Method Detail
-
start
public void start()
-
flush
public void flush()
-
ingestLog
public void ingestLog(LogsMessage logsMessage)
-
-