hnormalise-0.3.1.0: Log message normalisation tool producing structured JSON messages
HNormalise.Config
data Config Source #
Constructors
Fields
port for incoming messages
binding to this host specification (TODO: needs support for HostPreference)
port to send rsyslog with successfully parsed and normalised msg part
host to send normalised data to
port to send rsyslog messges that failed to parse
host to send original data to when parsing failed
Instances
Methods
showsPrec :: Int -> Config -> ShowS #
show :: Config -> String #
showList :: [Config] -> ShowS #
mempty :: Config #
mappend :: Config -> Config -> Config #
mconcat :: [Config] -> Config #
toJSON :: Config -> Value #
toEncoding :: Config -> Encoding #
toJSONList :: [Config] -> Value #
toEncodingList :: [Config] -> Encoding #
parseJSON :: Value -> Parser Config #
parseJSONList :: Value -> Parser [Config] #
loadConfig :: Maybe FilePath -> IO Config Source #