Skip to content

Commit

Permalink
Updated syslog parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
bhdresh authored Oct 4, 2021
1 parent f5a7b0b commit 05cb0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/Decoify/mailAlert.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function saveLog($decoyName, $decoyGroup, $decoyIP, $attackerIP, $eventType, $ev

if($SyslogStatus == 1)
{
$syslog = $decoyName." | ".$decoyGroup." | ".$decoyIP." | ".$serviceType." | ".$decoy_type." | ".$attackerIP." | ".$eventType." | ".$logtime." | ".$pcap_filename." | ".$video_filename." | ".$msg_filename;
$syslog = "decoyname=".$decoyName." | decoygroup=".$decoyGroup." | decoyip=".$decoyIP." | servicetype=".$serviceType." | decoytype=".$decoy_type." | attackerip=".$attackerIP." | eventtype=".$eventType." | logtime=".$logtime." | pcapfilename=".$pcap_filename." | videofilename=".$video_filename." | msgfilename=".$msg_filename;

$myfile = file_put_contents('/var/log/syslogclient.log', $syslog.PHP_EOL , FILE_APPEND | LOCK_EX);
}
Expand Down

0 comments on commit 05cb0f4

Please sign in to comment.