LEFT | RIGHT |
(no file at all) | |
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 """The extraction CLI tool.""" | 2 """The extraction CLI tool.""" |
3 | 3 |
4 from __future__ import unicode_literals | 4 from __future__ import unicode_literals |
5 | 5 |
6 import logging | 6 import logging |
7 | 7 |
8 from dfvfs.resolver import context as dfvfs_context | 8 from dfvfs.resolver import context as dfvfs_context |
9 | 9 |
10 # The following import makes sure the analyzers are registered. | 10 # The following import makes sure the analyzers are registered. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 configuration.event_extraction.text_prepend = self._text_prepend | 80 configuration.event_extraction.text_prepend = self._text_prepend |
81 configuration.extraction.hasher_file_size_limit = ( | 81 configuration.extraction.hasher_file_size_limit = ( |
82 self._hasher_file_size_limit) | 82 self._hasher_file_size_limit) |
83 configuration.extraction.hasher_names_string = self._hasher_names_string | 83 configuration.extraction.hasher_names_string = self._hasher_names_string |
84 configuration.extraction.process_archives = self._process_archives | 84 configuration.extraction.process_archives = self._process_archives |
85 configuration.extraction.process_compressed_streams = ( | 85 configuration.extraction.process_compressed_streams = ( |
86 self._process_compressed_streams) | 86 self._process_compressed_streams) |
87 configuration.extraction.yara_rules_string = self._yara_rules_string | 87 configuration.extraction.yara_rules_string = self._yara_rules_string |
88 configuration.filter_file = self._filter_file | 88 configuration.filter_file = self._filter_file |
89 configuration.input_source.mount_path = self._mount_path | 89 configuration.input_source.mount_path = self._mount_path |
| 90 configuration.log_filename = self._log_file |
90 configuration.parser_filter_expression = self._parser_filter_expression | 91 configuration.parser_filter_expression = self._parser_filter_expression |
91 configuration.preferred_year = self._preferred_year | 92 configuration.preferred_year = self._preferred_year |
92 configuration.profiling.directory = self._profiling_directory | 93 configuration.profiling.directory = self._profiling_directory |
93 configuration.profiling.sample_rate = self._profiling_sample_rate | 94 configuration.profiling.sample_rate = self._profiling_sample_rate |
94 configuration.profiling.profilers = self._profilers | 95 configuration.profiling.profilers = self._profilers |
95 configuration.temporary_directory = self._temporary_directory | 96 configuration.temporary_directory = self._temporary_directory |
96 | 97 |
97 if not configuration.parser_filter_expression: | 98 if not configuration.parser_filter_expression: |
98 operating_system = knowledge_base.GetValue('operating_system') | 99 operating_system = knowledge_base.GetValue('operating_system') |
99 operating_system_product = knowledge_base.GetValue( | 100 operating_system_product = knowledge_base.GetValue( |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 argument_group.add_argument( | 215 argument_group.add_argument( |
215 '--buffer_size', '--buffer-size', '--bs', dest='buffer_size', | 216 '--buffer_size', '--buffer-size', '--bs', dest='buffer_size', |
216 action='store', default=0, help=( | 217 action='store', default=0, help=( |
217 'The buffer size for the output (defaults to 196MiB).')) | 218 'The buffer size for the output (defaults to 196MiB).')) |
218 | 219 |
219 argument_group.add_argument( | 220 argument_group.add_argument( |
220 '--queue_size', '--queue-size', dest='queue_size', action='store', | 221 '--queue_size', '--queue-size', dest='queue_size', action='store', |
221 default=0, help=( | 222 default=0, help=( |
222 'The maximum number of queued items per worker ' | 223 'The maximum number of queued items per worker ' |
223 '(defaults to {0:d})').format(self._DEFAULT_QUEUE_SIZE)) | 224 '(defaults to {0:d})').format(self._DEFAULT_QUEUE_SIZE)) |
LEFT | RIGHT |