Skip to content

Commit

Permalink
Don't limit log output to 1256 in analysisd
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpesp committed Feb 12, 2021
1 parent 10c5484 commit a6d545d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/analysisd/alerts/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void OS_LogOutput(Eventinfo *lf)
printf(
"** Alert %d.%ld:%s - %s\n"
"%d %s %02d %s %s%s%s\nRule: %d (level %d) -> '%s'"
"%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n%.1256s\n",
"%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n%s\n",
lf->time,
__crt_ftell,
lf->generated_rule->alert_opts & DO_MAILALERT?" mail ":"",
Expand Down Expand Up @@ -110,7 +110,7 @@ void OS_LogOutput(Eventinfo *lf)
char **lasts = lf->generated_rule->last_events;
while(*lasts)
{
printf("%.1256s\n",*lasts);
printf("%s\n",*lasts);
lasts++;
}
lf->generated_rule->last_events[0] = NULL;
Expand All @@ -132,7 +132,7 @@ void OS_Log(Eventinfo *lf)
fprintf(_aflog,
"** Alert %d.%ld:%s - %s\n"
"%d %s %02d %s %s%s%s\nRule: %d (level %d) -> '%s'"
"%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n%.1256s\n",
"%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n%s\n",
lf->time,
__crt_ftell,
lf->generated_rule->alert_opts & DO_MAILALERT?" mail ":"",
Expand Down Expand Up @@ -178,7 +178,7 @@ void OS_Log(Eventinfo *lf)
char **lasts = lf->generated_rule->last_events;
while(*lasts)
{
fprintf(_aflog,"%.1256s\n",*lasts);
fprintf(_aflog,"%s\n",*lasts);
lasts++;
}
lf->generated_rule->last_events[0] = NULL;
Expand Down

0 comments on commit a6d545d

Please sign in to comment.