Search in sources :

Example 1 with Message

use of org.logstash.beats.Message in project java by wavefrontHQ.

the class LogsIngesterTest method receiveFilebeatLog.

private void receiveFilebeatLog(String log) {
    Map<String, Object> data = Maps.newHashMap();
    data.put("message", log);
    data.put("beat", Maps.newHashMap());
    data.put("@timestamp", "2016-10-13T20:43:45.172Z");
    filebeatIngesterUnderTest.onNewMessage(null, new Message(0, data));
}
Also used : Message(org.logstash.beats.Message)

Aggregations

Message (org.logstash.beats.Message)1