Format log events for output to ElasticSearch
LayoutElasticSearch.RdSimilar to lgr::LayoutJson, but with some modifications to prepare data for ElasticSearch.
Value
The $new() method returns an R6::R6 that inherits from
lgr::Layout and can used as a Layout by an lgr::Appender.
See also
Other Layout:
LayoutDbi
Super class
lgr::Layout -> LayoutElasticSearch
Active bindings
toJSON_argsa list of values passed on to
jsonlite::toJSON()transform_eventa
functionwith a single argumenteventthat takes a lgr::LogEvent and returns alist.
Methods
Inherited methods
Method new()
Usage
LayoutElasticSearch$new(
toJSON_args = list(auto_unbox = TRUE),
transform_event = function(event) get("values", event)
)