@@ -23,7 +23,7 @@ optional arguments::
2323 -f FILES [FILES ...], --files FILES [FILES ...]
2424 space-separated filelist to watch, can include globs
2525 (*.log). Overrides --path argument
26- -F {json,msgpack,raw,rawjson,string}, --format {json,msgpack,raw,rawjson,string}
26+ -F {json,msgpack,raw,rawjson,string,gelf }, --format {json,msgpack,raw,rawjson,string,gelf }
2727 format to use when sending to transport
2828 -H HOSTNAME, --hostname HOSTNAME
2929 manual hostname override for source_host
@@ -118,7 +118,7 @@ The following configuration keys are for multi-line events support and are per f
118118
119119The following can also be passed via argparse. Argparse will override all options in the configfile, when specified.
120120
121- * format: Default ``json ``. Options ``[ json, msgpack, string ] ``. Format to use when sending to transport
121+ * format: Default ``json ``. Options ``[ json, msgpack, string, raw, rawjson, gelf ] ``. Format to use when sending to transport
122122* files: Default ``files ``. Space-separated list of files to tail. (Comma separated if specified in the config file)
123123* path: Default ``/var/log ``. Path glob to tail.
124124* transport: Default ``stdout ``. Transport to use when log changes are detected
@@ -470,23 +470,36 @@ Mqtt transport using Mosquitto::
470470 # From the commandline
471471 beaver -c /etc/beaver/conf -f /var/log/unmappable.log -t mqtt
472472
473- HTTP transport::
474- The HTTP transport simply posts the payload data for a log event to the url specified here.
475- You can use this to post directly to elastic search, for example by creating an index and posting json to the index URL:
476- Assuming an elastic search instance running on your localhost:
477- Create a 'logs' index:
473+ HTTP transport
474+
475+ The HTTP transport simply posts the payload data for a log event to the url specified here.
476+ You can use this to post directly to elastic search, for example by creating an index and posting json to the index URL::
477+
478+ # Assuming an elastic search instance running on your localhost,
479+ # create a 'logs' index:
478480 curl -XPUT 'http://localhost:9200/logs/'
479481
480- A beaver config to post directly to elastic search:
482+ # A beaver config to post directly to elastic search:
481483 # /etc/beaver/conf
482484 [beaver]
483485 format: json
484486 logstash_version: 1
485487 http_url: http://localhost:9200/logs/log
486488
487- #from the commandline
489+ # From the commandline
488490 beaver -c /etc/beaver/conf -F json -f /var/log/somefile -t http
489491
492+ GELF using HTTP transport
493+
494+ To ship logs directly to a Graylog server, start with this configuration::
495+
496+ # /etc/beaver/conf, GELF HTTP input on port 12200
497+ [beaver]
498+ http_url: 'http://graylog.example.com:12200/gelf'
499+
500+ # From the commandline
501+ beaver -c /etc/beaver/conf -f /var/log/somefile -t http -F gelf
502+
490503Sincedb support using Sqlite3
491504*****************************
492505
@@ -613,5 +626,3 @@ Sample of data from add_field::
613626
614627Sample of data from add_field_env::
615628 myKey => "myValue"
616-
617-
0 commit comments