hslogstash-0.2.0: A library to work with, or as, a logstash server

Safe HaskellNone




emptyLSMessage :: Text -> LogstashMessageSource

As the name implies, this creates a dummy Logstash message, only updating the message field.

logstashTimestamp :: UTCTime -> TextSource

This formats an UTCTime in what logstash expects

parseLogstashTime :: Text -> Maybe UTCTimeSource

This parses the logstash format

value2logstash :: Value -> Maybe LogstashMessageSource

This will try to convert an arbitrary JSON value into a LogstashMessage.