Package-level declarations

Sending rendered log events to sinks.

Sending rendered log events to sinks.

Sending rendered log events to sinks.

Types

Link copied to clipboard
@Serializable
data class ElkEndpoint(val url: String, val checkCertificate: String = "true")

Model of an ELK server endpoint

Link copied to clipboard
data class Endpoint(val host: String = "localhost", val port: Int = 12201)

Model of a Graylog server endpoint.

Link copied to clipboard
interface EventSender

Interface for sending log events somewhere.

Link copied to clipboard
interface SendString

Interface used for sending a string to a target somewhere.

Link copied to clipboard
@Serializable
data class SplunkEndpoint(val hecUrl: String, val hecToken: String, val index: String? = null, val sourceType: String? = null, val source: String? = null, val checkCertificate: String = "true")

Model of a Splunk server HEC endpoint.

Properties

Link copied to clipboard
expect val STDERR: SendString

Send an event rendered as a string to the standard error stream.

actual val STDERR: SendString
actual val STDERR: SendString
Link copied to clipboard

Send an event rendered as a string to the standard output stream.

Functions

Link copied to clipboard
suspend fun <E> receiveBatch(channel: ReceiveChannel<E>, maxTimeMillis: Long, maxSize: Int): List<E>

Receive a batch of items from a channel, up to time and batch size limits.

Link copied to clipboard

Convert a RenderString and SendString into an EventSender.

Link copied to clipboard
fun splunkServer(hecUrl: String, hecToken: String, checkCertificate: Boolean = true): SendString

Creates a SendString function that sends an event string to a Splunk server using the HTTP Event Collector (HEC) API.