LayoutElasticSearch.Rd
Similar to lgr::LayoutJson, but with some modifications to prepare data for ElasticSearch.
The $new()
method returns an R6::R6 that inherits from
lgr::Layout and can used as a Layout by an lgr::Appender.
Other Layout:
LayoutDbi
lgr::Layout
-> LayoutElasticSearch
toJSON_args
a list of values passed on to jsonlite::toJSON()
transform_event
a function
with a single argument event
that
takes a lgr::LogEvent and returns a list
.
Inherited methods
new()
LayoutElasticSearch$new(
toJSON_args = list(auto_unbox = TRUE),
transform_event = function(event) get("values", event)
)