Module Values.ParseJSONSource

This processor parses log events that are in JSON format. It can extract JSON key-value pairs and place them under a destination that you specify. Additionally, because you must have at least one parse-type processor in a transformer, you can use ParseJSON as that processor for JSON-format logs, so that you can also apply other processors, such as mutate processors, to these logs. For more information about this processor including examples, see parseJSON in the CloudWatch Logs User Guide.

Sourcetype nonrec t = {
  1. source : Source.t option;
    (*

    Path to the field in the log event that will be parsed. Use dot notation to access child fields. For example, store.book

    *)
  2. destination : DestinationField.t option;
    (*

    The location to put the parsed key value pair into. If you omit this parameter, it is placed under the root node.

    *)
}
Sourceval make : ?source:??? -> ?destination:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of Source.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t