beats: Index | Files

package jsontransform

import ""


Package Files

jsonhelper.go transform.go

func TransformNumbers Uses

func TransformNumbers(dict common.MapStr)

TransformNumbers walks a json decoded tree an replaces json.Number with int64, float64, or string, in this order of preference (i.e. if it parses as an int, use int. if it parses as a float, use float. etc).

func WriteJSONKeys Uses

func WriteJSONKeys(event *beat.Event, keys map[string]interface{}, overwriteKeys bool, addErrKey bool)

WriteJSONKeys writes the json keys to the given event based on the overwriteKeys option and the addErrKey

Package jsontransform imports 6 packages (graph) and is imported by 162 packages. Updated 2019-08-10. Refresh now. Tools for package owners.