Module Values.DateTimeConverterSource

This processor converts a datetime string into a format that you specify. For more information about this processor including examples, see datetimeConverter in the CloudWatch Logs User Guide.

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

    The key to apply the date conversion to.

    *)
  2. target : Target.t;
    (*

    The JSON field to store the result in.

    *)
  3. targetFormat : TargetFormat.t option;
    (*

    The datetime format to use for the converted data in the target field. If you omit this, the default of yyyy-MM-dd'T'HH:mm:ss.SSS'Z is used.

    *)
  4. matchPatterns : MatchPatterns.t;
    (*

    A list of patterns to match against the source field.

    *)
  5. sourceTimezone : SourceTimezone.t option;
    (*

    The time zone of the source field. If you omit this, the default used is the UTC zone.

    *)
  6. targetTimezone : TargetTimezone.t option;
    (*

    The time zone of the target field. If you omit this, the default used is the UTC zone.

    *)
  7. locale : Locale.t option;
    (*

    The locale of the source field. If you omit this, the default of locale.ROOT is used.

    *)
}
Sourceval context_ : string
Sourceval make : ?targetFormat:??? -> ?sourceTimezone:??? -> ?targetTimezone:??? -> ?locale:??? -> source:Source.t -> target:Target.t -> matchPatterns:MatchPatterns.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `String of MatchPattern.t ] list | `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