Skip to content

Commit

Permalink
Gfs/#331 (#334)
Browse files Browse the repository at this point in the history
* Minor fixes.

* Fix filters.

Collection on OS X was being slowed down by crawling the /dev folder for unknown reasons.  By excluding the dev folder again correctly (the platform specifier had changed) collection is again working.
  • Loading branch information
gfs committed Dec 20, 2019
1 parent 08ee961 commit b475814
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Lib/Collectors/FileSystemCollector.cs
Expand Up @@ -120,7 +120,7 @@ public override void ExecuteInternal()
e is System.Security.Cryptography.CryptographicException
|| e is ArgumentException)
{
Log.Debug($"Could not parse certificate from file: {fileInfo.FullName}");
Log.Verbose($"Could not parse certificate from file: {fileInfo.FullName}");
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions Lib/Collectors/WindowsFileSystemUtils.cs
Expand Up @@ -74,6 +74,10 @@ public static List<string> GetDllCharacteristics(string Path)
{
Log.Verbose($"Failed to get PE Headers for {Path} {e.GetType().ToString()}");
}
catch (Exception e)
{
Log.Debug(e, $"Failed to get PE Headers for {Path}");
}
}

return output;
Expand Down
7 changes: 4 additions & 3 deletions filters.json
Expand Up @@ -86,7 +86,7 @@
}
}
},
"OSX": {
"MACOS": {
"Monitor": {
"File": {
"Path": {
Expand All @@ -102,7 +102,7 @@
"Path": {
"Exclude": [
"^/private/var/db/uuidtext",
"^/dev/",
"^/dev",
"^/.Spotlight-V100"
]
}
Expand All @@ -119,7 +119,8 @@
"^/usr/src/",
"^/snap/",
"^/run/systemd/",
"^/run/udev/"
"^/run/udev/",
"^/dev"
]
}
}
Expand Down

0 comments on commit b475814

Please sign in to comment.