I tested using a single session dump file of about 17Mb. The rule profile and the keyword profile did not occur. When the sample-rate was set to 1000, no files were created either when commented out.
When checking suricata.log, it was possible to check as follows.
{“timestamp”:“2021-06-14T12:42:12.467216+0900”,“log_level”:“Error”,“event_type”:“engine”,“engine”:{“error_code”:187,“error”: “SC_ERR_RUNMODE”,“message”:“The custom type "workers" doesn’t exist for this runmode type "PCAP_FILE". Please use --list-runmodes to see available custom types for this runmode”}}
So, I tested with runmode as single, but the file was still not created. The log generated at this time is as follows.
{“timestamp”:“2021-06-14T13:15:22.869447+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:“0 new flows, 0 established flows were timed out, 0 flows in closed state”}}
{“timestamp”:“2021-06-14T13:15:22.869525+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:“0 new flows, 0 established flows were timed out, 0 flows in closed state”}}
{“timestamp”:“2021-06-14T13:15:23.207757+0900”,“log_level”:“Info”,“event_type”:“engine”,“engine”:{“message”:“time elapsed 17.482s” }}
{“timestamp”:“2021-06-14T13:15:23.535419+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:“2 flows processed”} }
{“timestamp”:“2021-06-14T13:15:23.535490+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:“28 flows processed”} }
{“timestamp”:“2021-06-14T13:15:23.535511+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:“0 flows processed”} }
{“timestamp”:“2021-06-14T13:15:23.535567+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:“13 flows processed”} }
{“timestamp”:“2021-06-14T13:15:23.603954+0900”,“log_level”:“Notice”,“event_type”:“engine”,“engine”:{“message”:“Pcap-file module read 1 files, 385491 packets, 519718810 bytes”}}
{“timestamp”:“2021-06-14T13:15:23.630633+0900”,“log_level”:“Info”,“event_type”:“engine”,“engine”:{“message”:“Alerts: 0”} }
{“timestamp”:“2021-06-14T13:15:24.490508+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:“ippair memory usage: 414144 bytes, maximum: 16777216”}}
{“timestamp”:“2021-06-14T13:15:31.102299+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:"Done dumping profiling data. "}}
{“timestamp”:“2021-06-14T13:15:31.102364+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:“host memory usage: 20307200 bytes, maximum: 1073741824”}}
{“timestamp”:“2021-06-14T13:15:31.149485+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:“Dumping profiling data for 20276 rules.”}}
{“timestamp”:“2021-06-14T13:15:31.156440+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:"Done dumping profiling data. "}}
{“timestamp”:“2021-06-14T13:15:31.156872+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:“Done dumping keyword profiling data .”}}
{“timestamp”:“2021-06-14T13:15:31.299257+0900”,“log_level”:“Info”,“event_type”:“engine”,“engine”:{“message”:“cleaning up signature grouping structure …complete”}}
{“timestamp”:“2021-06-14T13:15:31.306878+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:"Cleaning up Hyperscan global scratch "}}
{“timestamp”:“2021-06-14T13:15:31.306920+0900”,“log_level”:“Perf”,“event_type”:“engine”,“engine”:{“message”:“Clearing Hyperscan database cache” }}