I run image_export.py and log2timeline.py in an automated script and want to use --partition all so that I don't have to worry about identifying the correct partition.
When using a filter file, some of the paths are not expanded correctly unless I specify the main OS partition instead of using --partition all.
This applies to both image_export.py and log2timeline.py
In the example below, I ran image_export.py against an image with three partitions: UEFI, OS, and recovery.
image_export.py --partition all --vss_stores all -f "src/plaso/data/filter_windows.txt" "imagefile.E01"
2015-10-29 12:25:19,856 [INFO] Processing started.
2015-10-29 12:25:20,318 [INFO] Guessing OS
2015-10-29 12:25:20,322 [INFO] OS: None
2015-10-29 12:25:20,322 [INFO] Running preprocess.
2015-10-29 12:25:20,322 [INFO] Preprocess done, saving files from image.
2015-10-29 12:25:20,323 [ERROR] Unable to use collection filter line: {sysregistry}/(SAM|SOFTWARE|SECURITY|SYSTEM) with error: u"Unable to expand path with error: 'sysregistry'"
2015-10-29 12:25:20,323 [ERROR] Unable to use collection filter line: {systemroot}/winevt/Logs/.+[.]evtx with error: u"Unable to expand path with error: 'systemroot'"
2015-10-29 12:25:20,323 [ERROR] Unable to use collection filter line: {systemroot}/config/.+[.]evt with error: u"Unable to expand path with error: 'systemroot'"
2015-10-29 12:25:20,323 [ERROR] Unable to use collection filter line: {windir}/inf/setupapi[.].+[.]log with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:20,323 [ERROR] Unable to use collection filter line: {windir}/setupapi.log with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:20,323 [ERROR] Unable to use collection filter line: {windir}/System32/LogFiles/.+/.+[.]txt with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:20,323 [ERROR] Unable to use collection filter line: {windir}/Tasks/.+[.]job with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:20,323 [ERROR] Unable to use collection filter line: {windir}/Appcompat/Programs/Recentfilecache[.]bcf with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:20,323 [ERROR] Unable to use collection filter line: {windir}/Appcompat/Programs/AMcache[.]hve with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:20,323 [ERROR] Unable to use collection filter line: {windir}/Prefetch/.+[.]pf with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:21,195 [ERROR] Unable to use collection filter line: {sysregistry}/(SAM|SOFTWARE|SECURITY|SYSTEM) with error: u"Unable to expand path with error: 'sysregistry'"
2015-10-29 12:25:21,195 [ERROR] Unable to use collection filter line: {systemroot}/winevt/Logs/.+[.]evtx with error: u"Unable to expand path with error: 'systemroot'"
2015-10-29 12:25:21,195 [ERROR] Unable to use collection filter line: {systemroot}/config/.+[.]evt with error: u"Unable to expand path with error: 'systemroot'"
2015-10-29 12:25:21,195 [ERROR] Unable to use collection filter line: {windir}/inf/setupapi[.].+[.]log with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:21,195 [ERROR] Unable to use collection filter line: {windir}/setupapi.log with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:21,195 [ERROR] Unable to use collection filter line: {windir}/System32/LogFiles/.+/.+[.]txt with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:21,195 [ERROR] Unable to use collection filter line: {windir}/Tasks/.+[.]job with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:21,195 [ERROR] Unable to use collection filter line: {windir}/Appcompat/Programs/Recentfilecache[.]bcf with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:21,195 [ERROR] Unable to use collection filter line: {windir}/Appcompat/Programs/AMcache[.]hve with error: u"Unable to expand path with error: 'windir'"
2015-10-29 12:25:21,195 [ERROR] Unable to use collection filter line: {windir}/Prefetch/.+[.]pf with error: u"Unable to expand path with error: 'windir'"
Resulting directory structure (find -type d -maxdepth=3):
I run image_export.py and log2timeline.py in an automated script and want to use --partition all so that I don't have to worry about identifying the correct partition.
When using a filter file, some of the paths are not expanded correctly unless I specify the main OS partition instead of using --partition all.
This applies to both image_export.py and log2timeline.py
In the example below, I ran image_export.py against an image with three partitions: UEFI, OS, and recovery.
image_export.py --partition all --vss_stores all -f "src/plaso/data/filter_windows.txt" "imagefile.E01"
Resulting directory structure (find -type d -maxdepth=3):
image_export.py --partition 2 --vss_stores all -f "src/plaso/data/filter_windows.txt" "imagefile.E01"
Resulting directory structure (find -type d -maxdepth=3):