OLD | NEW |
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 """Processing configuration classes.""" | 2 """Processing configuration classes.""" |
3 | 3 |
4 from __future__ import unicode_literals | 4 from __future__ import unicode_literals |
5 | 5 |
6 from plaso.containers import interface | 6 from plaso.containers import interface |
7 | 7 |
8 | 8 |
9 class CredentialConfiguration(interface.AttributeContainer): | 9 class CredentialConfiguration(interface.AttributeContainer): |
10 """Configuration settings for a credential. | 10 """Configuration settings for a credential. |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 Attributes: | 167 Attributes: |
168 credentials (list[CredentialConfiguration]): credential configurations. | 168 credentials (list[CredentialConfiguration]): credential configurations. |
169 data_location (str): path to the data files. | 169 data_location (str): path to the data files. |
170 debug_output (bool): True if debug output should be enabled. | 170 debug_output (bool): True if debug output should be enabled. |
171 event_extraction (EventExtractionConfiguration): event extraction | 171 event_extraction (EventExtractionConfiguration): event extraction |
172 configuration. | 172 configuration. |
173 extraction (ExtractionConfiguration): extraction configuration. | 173 extraction (ExtractionConfiguration): extraction configuration. |
174 filter_file (str): path to a file with find specifications. | 174 filter_file (str): path to a file with find specifications. |
175 input_source (InputSourceConfiguration): input source configuration. | 175 input_source (InputSourceConfiguration): input source configuration. |
| 176 log_filename (str): name of the log file. |
176 parser_filter_expression (str): parser filter expression, | 177 parser_filter_expression (str): parser filter expression, |
177 where None represents all parsers and plugins. | 178 where None represents all parsers and plugins. |
178 preferred_year (int): preferred initial year value for year-less date and | 179 preferred_year (int): preferred initial year value for year-less date and |
179 time values. | 180 time values. |
180 profiling (ProfilingConfiguration): profiling configuration. | 181 profiling (ProfilingConfiguration): profiling configuration. |
181 temporary_directory (str): path of the directory for temporary files. | 182 temporary_directory (str): path of the directory for temporary files. |
182 """ | 183 """ |
183 CONTAINER_TYPE = 'processing_configuration' | 184 CONTAINER_TYPE = 'processing_configuration' |
184 | 185 |
185 def __init__(self): | 186 def __init__(self): |
186 """Initializes a process configuration object.""" | 187 """Initializes a process configuration object.""" |
187 super(ProcessingConfiguration, self).__init__() | 188 super(ProcessingConfiguration, self).__init__() |
188 self.credentials = [] | 189 self.credentials = [] |
189 self.data_location = None | 190 self.data_location = None |
190 self.debug_output = False | 191 self.debug_output = False |
191 self.event_extraction = EventExtractionConfiguration() | 192 self.event_extraction = EventExtractionConfiguration() |
192 self.extraction = ExtractionConfiguration() | 193 self.extraction = ExtractionConfiguration() |
193 self.filter_file = None | 194 self.filter_file = None |
194 self.input_source = InputSourceConfiguration() | 195 self.input_source = InputSourceConfiguration() |
| 196 self.log_filename = None |
195 self.parser_filter_expression = None | 197 self.parser_filter_expression = None |
196 self.preferred_year = None | 198 self.preferred_year = None |
197 self.profiling = ProfilingConfiguration() | 199 self.profiling = ProfilingConfiguration() |
198 self.temporary_directory = None | 200 self.temporary_directory = None |
OLD | NEW |