private void createEvent(int version, int priority, Calendar cal, String hostname,
    byte[] appName, byte[] procId, byte[] msgId, Map<String, String> structuredData, byte[] body, List<Object> row) {
    row.add(FACILITIES[priority / 8]);
    row.add(getEventPriorityBySyslog(priority));
    row.add(version == 0 ? "RFC3164" : "RFC5424");
    row.add(Timestamp.ofEpochMilli(cal.getTimeInMillis()));
    row.add(hostname != null ? hostname : "");
    row.add(appName != null ? new String(appName) : "");
    row.add(procId != null ? new String(procId) : "");
    row.add(msgId != null ? new String(msgId) : "");
    row.add(structuredData);
    row.add(body);
  }
Create a log event from the given parameters.
https://www.rfc-editor.org/rfc/rfc3164
https://www.rfc-editor.org/rfc/rfc5424

@param version        the syslog version, 0 for RFC 3164
@param priority       the syslog priority, according to RFC 5424
@param cal            the timestamp of the message. Note that timezone matters
@param hostname       the hostname
@param appName        the RFC 5424 app-name
@param procId         the RFC 5424 proc-id
@param msgId          the RFC 5424 msg-id
@param structuredData the RFC 5424 structured-data
@param body           the message body
ql/src/java/org/apache/hadoop/hive/ql/log/syslog/SyslogParser.java