[Events] Added ID to export CSV

This commit is contained in:
fermin831 2018-04-18 19:50:13 +02:00
parent 0b23f25455
commit 32f96c45ba
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,7 @@ $now = date ("Y-m-d");
Header ("Content-type: text/txt");
header ('Content-Disposition: attachment; filename="pandora_export_event'.$now.'.txt"');
echo "timestamp, agent, group, event, status, user, event_type, severity";
echo "timestamp, agent, group, event, status, user, event_type, severity, id";
echo chr (13);
$new = true;
@ -128,6 +128,8 @@ while ($event = db_get_all_row_by_steps_sql($new, $result, $sql)) {
echo io_safe_output($event["event_type"]);
echo ",";
echo $event["criticity"];
echo ",";
echo $event["id_evento"];
echo chr (13);
}
?>