| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
HNormalise.Parser
- rsyslogLogstashTemplate :: [Char]
- parseMessage :: Parser (Text, ParseResult)
- getJsonKey :: ParseResult -> Text
- parseRsyslogLogstashString :: Maybe [(Text, Text)] -> Parser ByteString
Documentation
parseMessage :: Parser (Text, ParseResult) Source #
The parseMessage function will try and use each configured parser to normalise the input it's given
Arguments
| :: ParseResult | Wrapped result for which we need to get a key |
| -> Text | Key for use in the JSON encoding of the result |
The getJsonKey function return the key under which the normalised message should appear when JSON is produced
parseRsyslogLogstashString Source #
Arguments
| :: Maybe [(Text, Text)] | Output fields |
| -> Parser ByteString | Resulting encoded JSON representation |
The parseRsyslogLogstashString currently is a placeholder function that will convert the incoming rsyslog message
if it is encoded as expected in a plain string format
%PRI%1 %timegenerated:::date-rfc3339% %HOSTNAME% %syslogtag% - %APP-NAME%: %msg%