Skip to content

Commit fb308f7

Browse files
committed
Add more friendly timeline name
1 parent ace532a commit fb308f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dftimewolf/lib/processors/turbinia.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def process(self):
119119
# instance of Turbinia).
120120
local_paths = []
121121
gs_paths = []
122+
timeline_label = '{0:s}-{1:s}'.format(self.project, self.disk_name)
122123
for task in task_data:
123124
for path in task.get('saved_paths', []):
124125
if path.startswith('/') and path.endswith('.plaso'):
@@ -132,7 +133,8 @@ def process(self):
132133
return
133134

134135
# Any local .plaso files that exist we can add immediately to the output
135-
self.state.output = [(p, p) for p in local_paths if os.path.exists(p)]
136+
self.state.output = [
137+
(timeline_label, p) for p in local_paths if os.path.exists(p)]
136138

137139
# For files remote in GCS we copy each plaso file back from GCS and then add
138140
# to output paths
@@ -147,7 +149,7 @@ def process(self):
147149
return
148150

149151
if local_path:
150-
self.state.output.append((path, local_path))
152+
self.state.output.append((timeline_label, local_path))
151153

152154
if not self.state.output:
153155
self.state.add_error('No .plaso files could be found.', critical=True)

0 commit comments

Comments
 (0)