Skip to content

Commit

Permalink
fix-syslog-generation (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
kortemik authored May 15, 2024
1 parent 4eb266c commit 89051d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/teragrep/aer_01/EventContextConsumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
import com.teragrep.aer_01.config.RelpConfig;
import com.teragrep.aer_01.config.SyslogConfig;
import com.teragrep.aer_01.config.source.Sourceable;
import com.teragrep.rlo_14.Facility;
import com.teragrep.rlo_14.SDElement;
import com.teragrep.rlo_14.Severity;
import com.teragrep.rlo_14.SyslogMessage;

import java.net.InetAddress;
Expand Down Expand Up @@ -122,6 +124,8 @@ public void accept(EventContext eventContext) {
eventContext.getEventData().getProperties();
*/
SyslogMessage syslogMessage = new SyslogMessage()
.withSeverity(Severity.INFORMATIONAL)
.withFacility(Facility.LOCAL0)
.withTimestamp(eventContext.getEventData().getEnqueuedTime())
.withHostname(syslogConfig.hostname)
.withAppName(syslogConfig.appName)
Expand Down

0 comments on commit 89051d3

Please sign in to comment.