Format log events for output to ElasticSearch
LayoutElasticSearch.Rd
Similar 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_args
a list of values passed on to
jsonlite::toJSON()
transform_event
a
function
with a single argumentevent
that 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)
)