distiller support for metadata extraction

This commit is contained in:
Sandy Walsh 2014-05-29 20:15:04 +00:00
parent 8f4c415e10
commit 45002fb79e
3 changed files with 39 additions and 0 deletions

View File

@ -34,6 +34,7 @@ pip install librabbitmq
for file in $SOURCE_DIR/* for file in $SOURCE_DIR/*
do do
cd $file cd $file
rm -rf build dist
python setup.py install python setup.py install
cd ../.. cd ../..
done done

36
distiller.conf Normal file
View File

@ -0,0 +1,36 @@
---
- event_type: compute.*
traits: &instance_traits
tenant_id:
fields: payload.tenant_id
user_id:
fields: payload.user_id
instance_id:
fields: payload.instance_id
host:
fields: publisher_id
plugin:
name: split
parameters:
segment: 1
max_split: 1
service:
fields: publisher_id
plugin: split
state:
fields: payload.state
launched_at:
type: datetime
fields: payload.launched_at
deleted_at:
type: datetime
fields: payload.deleted_at
- event_type: compute.instance.exists
traits:
<<: *instance_traits
audit_period_beginning:
type: datetime
fields: payload.audit_period_beginning
audit_period_ending:
type: datetime
fields: payload.audit_period_ending

View File

@ -44,3 +44,5 @@ filename_template=events_%Y_%m_%d_%X_%f.dat
roll_checker=shoebox.roll_checker:SizeRollChecker roll_checker=shoebox.roll_checker:SizeRollChecker
roll_size_mb=1 roll_size_mb=1
callback=shoebox.handlers:MoveFileCallback callback=shoebox.handlers:MoveFileCallback
distiller_conf=../../../distiller.conf