Top Level Namespace

Defined Under Namespace

Modules: CEF

Instance Method Summary collapse

Instance Method Details



40
41
42
# File 'bin/cef_sender', line 40

def print_schema(event)
  event.attrs.keys.collect {|k| k.to_s}.sort.each {|a| puts a}
end


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'bin/cef_sender', line 20

def print_usage
        puts "Usage: cef_sender --sourceAddress=\"192.168.1.1\" [--eventAttribute=\"something\"]\n\n  non-schema arguments: \n     --help gets you here\n     --schema will dump all of the callable event attribute names\n     --receiver= syslog receiver hostname/ip\n     --receiverPort= syslog port\n     --append-file=  filename to append cef message to\n     --tcp will use TCP instead of the default (UDP) to send the message\n\ncef_sender will send CEF-formatted syslog messages to a receiver of your choice.\nonly the cef fields defined in the cef reader flex connector are supported.\ndatatyping is not enforced here.\n\n"

end