hnormalise-0.3.3.0: Log message normalisation tool producing structured JSON messages
HNormalise.Config
data Config Source #
Constructors
Fields
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] #
data PortConfig Source #
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
showsPrec :: Int -> PortConfig -> ShowS #
show :: PortConfig -> String #
showList :: [PortConfig] -> ShowS #
mempty :: PortConfig #
mappend :: PortConfig -> PortConfig -> PortConfig #
mconcat :: [PortConfig] -> PortConfig #
toJSON :: PortConfig -> Value #
toEncoding :: PortConfig -> Encoding #
toJSONList :: [PortConfig] -> Value #
toEncodingList :: [PortConfig] -> Encoding #
parseJSON :: Value -> Parser PortConfig #
parseJSONList :: Value -> Parser [PortConfig] #
loadConfig :: Maybe FilePath -> IO Config Source #