intelmq.bots.outputs.file package¶
Submodules¶
intelmq.bots.outputs.file.output module¶
-
intelmq.bots.outputs.file.output.BOT¶
-
class
intelmq.bots.outputs.file.output.FileOutputBot(*args, **kwargs)¶ Bases:
intelmq.lib.bot.OutputBotWrite events to a file
-
static
check(parameters)¶ The bot’s own check function can perform individual checks on it’s parameters. init() is not called before, this is a staticmethod which does not require class initialization.
Parameters: parameters – Bot’s parameters, defaults and runtime merged together Returns: - None or a list of [log_level, log_message] pairs, both
- strings. log_level must be a valid log level.
Return type: output
-
encoding_errors_mode= 'strict'¶
-
file= '/opt/intelmq/var/lib/bots/file-output/events.txt'¶
-
format_filename= False¶
-
hierarchical_output= False¶
-
init()¶
-
keep_raw_field= False¶
-
message_jsondict_as_string= False¶
-
message_with_type= False¶
-
open_file(filename: str = None)¶
-
process()¶
-
shutdown()¶
-
single_key= False¶
-
static