[][src]Struct emmett::inputs::Gelf

pub struct Gelf {
    pub host: Option<String>,
    pub use_udp: Option<bool>,
    pub use_tcp: Option<bool>,
    pub port: Option<u64>,
    pub port_tcp: Option<u64>,
    pub port_udp: Option<u64>,
    pub remap: Option<bool>,
    pub strip_leading_underscore: Option<bool>,
}

This input will read GELF messages as events over the network, making it a good choice if you already use Graylog2 today.

Fields

host: Option<String>

The IP address or hostname to listen on.

use_udp: Option<bool>

Whether to listen for GELF messages sent over UDP.

use_tcp: Option<bool>

Whether to listen for GELF messages sent over TCP.

port: Option<u64>

The port to listen on. Remember that ports less than 1024 (privileged ports) may require root to use. port_tcp and port_udp can be used to set a specific port for each protocol.

port_tcp: Option<u64>

Tcp port to listen on. Use port instead of this setting unless you need a different port for udp than TCP.

port_udp: Option<u64>

Udp port to listen on. Use port instead of this setting unless you need a different port for udp than tcp.

remap: Option<bool>

Whether or not to remap the GELF message fields to Logstash event fields or leave them intact. Remapping converts the following GELF fields to Logstash equivalents: full_message becomes event.get("message"). if there is no full_message, short_message becomes event.get("message")

strip_leading_underscore: Option<bool>

Whether or not to remove the leading _ in GELF fields or leave them in place. (Logstash < 1.2 did not remove them by default.). Note that GELF version 1.1 format now requires all non-standard fields to be added as an "additional" field, beginning with an underscore. e.g. _foo becomes foo

Auto Trait Implementations

impl Send for Gelf

impl Unpin for Gelf

impl Sync for Gelf

impl UnwindSafe for Gelf

impl RefUnwindSafe for Gelf

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self