diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
commit | 72231250ed81e10d66bfe70701e64fa5fe50f712 (patch) | |
tree | 2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /vespalog/README.server.protocol |
Publish
Diffstat (limited to 'vespalog/README.server.protocol')
-rw-r--r-- | vespalog/README.server.protocol | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/vespalog/README.server.protocol b/vespalog/README.server.protocol new file mode 100644 index 00000000000..7d89bf625c0 --- /dev/null +++ b/vespalog/README.server.protocol @@ -0,0 +1,46 @@ +Protocol for talking to the log server: + +Pure line-based text protocol. Tcp to some port on the log server: + +From log daemon (or anything, really) to server: + +service <service> +component <service> <component> +state <service> <component> <levels> + + +This tells the log daemon that service <service> exists, and that it +has a component named <component>. + +<levels> syntax: + +fatal=forward,error=forward,warning=store,info=store,event=forward,debug=off,spam=off + +ie: level=<status>[,...]* + +Where <status> is one of: +forward : store and send to log server +store : store locally only (to file) +off : do not even generate the message in the program + + + +From server to whoever is interested: + +setstate <service> <component> <levels> + +Exactly same syntax. Levels that are not mentioned are not modified. + +list services +list components <service> +list states <service> <component> + +(list commands are replied to with service/component/state commands). + + + + + + + + |