DEFAULT_RTN_OUT = {
"search_type": "search", # Type of search
"status": "", # Status of the entire process
"message": "", # Message of the status
"output_dir": "", # Output directory
"merged_output_file": "", # Merged output file (Basically output file)
"merge_status": "", # Status of the merge process
"merge_cmd_output": "", # Output of the merge command
"total_files": 0, # Total number of files being searched
"successfull_searches": 0, # Number of successful searches
"failed_searches": 0, # Number of failed searches
"search_start_time": "", # Start time of the search process (Start of celery task)
"search_end_time": "", # End time of the search process (End of the search process)
"output_search_time": "", # Earliest timestamp of files being searched (Real search start time based on files)
"output_end_time": "", # Latest timestamp of files being searched
"duration": "00:00:00", # Duration of the entire process
"search_version": "", # Version of the search command
"parameters": { # Parameters used for the search
"output_filename": "",
"expression": "",
"syntax": "",
"packet_slice": "",
"output_directory": "",
"vxlan": "",
"vlan": "",
"no_vxlan": "",
"no_vlan": "",
"vxlanid": "",
"vlanid": "",
},
"files": {}, # Files being searched (This includes info like timestamp and size)
"output_files": {}, # Output files (Input file: Output file)
"search_results": [], # Results of the search command
"successfull_list": [], # List of successful searches
"failed_list": [], # List of failed searches
"search_data": { # Search data (This will be useful data for the search)
"total_packets_filtered": 0,
"total_packets_processed": 0,
"total_file_size": 0
}
} |