| Constructor and Description |
|---|
LogTcpTokenWriter(String token,
String endpoint,
int port)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this writer.
|
void |
writeLogentry(String line)
Write the given line to Rapid7 InsightOps.
|
public LogTcpTokenWriter(String token, String endpoint, int port) throws IOException
token - The token for the logfileport - The port to connect to the data endpointendpoint - Data ingestion endpoint to transmit the logsIOException - If there was a problem connecting to Rapid7 InsightOps.public void writeLogentry(String line) throws IOException
writeLogentry in interface LogWriterline - The line to write.IOException - If there was a problem writing the line.Copyright © 2016–2018. All rights reserved.