mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
Filtering out LowBattery crash logs (#2080)
The mobile 'LowBattery' crash logs provide little if any data of value, and seem to be nothing more than notification events. We're filtering these out of the crashes table.
This commit is contained in:
parent
947799d28e
commit
2ac2eef3c8
@ -140,7 +140,8 @@ QueryData genCrashLogs(QueryContext& context) {
|
||||
std::vector<std::string> files;
|
||||
if (listFilesInDirectory(path, files)) {
|
||||
for (const auto& lf : files) {
|
||||
if (alg::ends_with(lf, ".crash")) {
|
||||
if (alg::ends_with(lf, ".crash") &&
|
||||
lf.find("LowBattery") == std::string::npos) {
|
||||
Row r;
|
||||
r["type"] = type;
|
||||
readCrashDump(lf, r);
|
||||
|
Loading…
Reference in New Issue
Block a user