Safe Haskell | None |
---|
- data LogstashMessage = LogstashMessage {}
- emptyLSMessage :: Text -> LogstashMessage
- logstashTimestamp :: UTCTime -> Text
- parseLogstashTime :: Text -> Maybe UTCTime
- value2logstash :: Value -> Maybe LogstashMessage
Documentation
data LogstashMessage Source
The Logstash message, as described in https://github.com/logstash/logstash/wiki/logstash's-internal-message-format. Please not there is no timestamp, as the logstash server will add it.
LogstashMessage | |
|
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.