You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error seems to be caused by the groupby().sum(), which tries to sum all columns in the grouped data, including the 'first_seen' and 'last_seen' columns, which are of type datetime.date.
To Reproduce
Clone main repository
Change dates from 2020 in various files to the dates where my Zeek data start
Describe the bug
Running AIP on the latest main/development throws the following error on the prioritise algorithms:
The error is caused by the following operation in the file
lib/aip/models/prioritize.py
:AIP/lib/aip/models/prioritize.py
Line 62 in 0390167
The error seems to be caused by the groupby().sum(), which tries to sum all columns in the grouped data, including the 'first_seen' and 'last_seen' columns, which are of type datetime.date.
To Reproduce
docker build --build-arg uid=1000 --file etc/docker/Dockerfile --tag aip:latest .
docker run --rm -v ${PWD}:/home/aip/AIP -v /opt/zeek/logs/:/home/aip/AIP/data/raw:ro -v ${PWD}/data/:/home/aip/AIP/data/:rw --name aip aip:latest bin/aip
Suggested solutions
One way to solve this would be to group by and sum all columns except those related with time:
The suggested modification seems to work in principle.
The text was updated successfully, but these errors were encountered: