Add tlog files.
This commit is contained in:
parent
3d50f43711
commit
fccf3ec06d
9 changed files with 541 additions and 218 deletions
2
opt/share/.gitignore
vendored
Normal file
2
opt/share/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/doc
|
||||
/man
|
||||
39
opt/share/tlog/tlog-play.default.conf
Normal file
39
opt/share/tlog/tlog-play.default.conf
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
//
|
||||
// Tlog-play default configuration. See tlog-play.conf(5) for details.
|
||||
// This file uses JSON format with both C and C++ comments allowed.
|
||||
//
|
||||
{
|
||||
// The type of "log reader" to use for retrieving log messages. The chosen
|
||||
// reader needs to be configured using its own dedicated parameters.
|
||||
"reader" : "file",
|
||||
|
||||
// File reader parameters
|
||||
"file": {
|
||||
// The path to the file the "file" reader should read logs from.
|
||||
// "path" : "",
|
||||
|
||||
// The recording id of the recording the "file" reader should seek to
|
||||
// for playback.
|
||||
// "match" : ""
|
||||
},
|
||||
|
||||
// Elasticsearch reader parameters
|
||||
"es": {
|
||||
// The base URL to request Elasticsearch through. Should not
|
||||
// contain query (?...) or fragment (#...) parts.
|
||||
// "baseurl" : "",
|
||||
|
||||
// The query string to send to Elasticsearch
|
||||
// "query" : "",
|
||||
|
||||
// If true, enable verbose output on Elasticsearch HTTP client.
|
||||
"verbose" : false
|
||||
},
|
||||
|
||||
// If true, ignore any keyboard-generated signals and the quit key.
|
||||
"persist" : false,
|
||||
|
||||
// If true, ignore missing (dropped, or lost) log messages.
|
||||
// Otherwise report an error and abort when a message is missing.
|
||||
"lax" : false
|
||||
}
|
||||
71
opt/share/tlog/tlog-rec-session.default.conf
Normal file
71
opt/share/tlog/tlog-rec-session.default.conf
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
//
|
||||
// Tlog-rec-session default configuration. See tlog-rec-session.conf(5) for details.
|
||||
// This file uses JSON format with both C and C++ comments allowed.
|
||||
//
|
||||
{
|
||||
// The path to the shell executable which should be spawned.
|
||||
"shell" : "/bin/bash",
|
||||
|
||||
// A message which will be printed before starting
|
||||
// recording and the user shell. Can be used to warn
|
||||
// the user that the session is recorded.
|
||||
"notice" : "\nATTENTION! Your session is being recorded!\n\n",
|
||||
|
||||
// The number of seconds to cache captured data for before logging.
|
||||
// The encoded data which does not reach payload size
|
||||
// stays in memory and is not logged until this number of
|
||||
// seconds elapses.
|
||||
"latency" : 10,
|
||||
|
||||
// The maximum encoded data (payload) size per message, bytes.
|
||||
// As soon as payload exceeds this number of bytes,
|
||||
// it is formatted into a message and logged.
|
||||
"payload" : 2048,
|
||||
|
||||
// Logged data set parameters
|
||||
"log": {
|
||||
// If true, user input is logged.
|
||||
"input" : false,
|
||||
|
||||
// If true, terminal output is logged.
|
||||
"output" : true,
|
||||
|
||||
// If true, terminal window size changes are logged.
|
||||
"window" : true
|
||||
},
|
||||
|
||||
// Logging limit parameters
|
||||
"limit": {
|
||||
// The maximum rate messages could be logged at, bytes/sec.
|
||||
"rate" : 16384,
|
||||
|
||||
// The number of bytes by which logged messages are allowed to exceed
|
||||
// the rate limit momentarily, i.e. "burstiness".
|
||||
"burst" : 32768,
|
||||
|
||||
// The logging limit action.
|
||||
// If set to "pass" no logging limits will be applied.
|
||||
// If set to "delay", logging will be throttled.
|
||||
// If set to "drop", messages exceeding limits will be dropped.
|
||||
"action" : "pass"
|
||||
},
|
||||
|
||||
// File writer parameters
|
||||
"file": {
|
||||
// The "file" writer log file path.
|
||||
// "path" : ""
|
||||
},
|
||||
|
||||
// Syslog writer parameters
|
||||
"syslog": {
|
||||
// The syslog facility "syslog" writer should use for messages.
|
||||
"facility" : "authpriv",
|
||||
|
||||
// The syslog priority "syslog" writer should use for messages.
|
||||
"priority" : "info"
|
||||
},
|
||||
|
||||
// The type of "log writer" to use for logging. The writer needs
|
||||
// to be configured using its dedicated parameters.
|
||||
"writer" : "syslog"
|
||||
}
|
||||
63
opt/share/tlog/tlog-rec.default.conf
Normal file
63
opt/share/tlog/tlog-rec.default.conf
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
//
|
||||
// Tlog-rec default configuration. See tlog-rec.conf(5) for details.
|
||||
// This file uses JSON format with both C and C++ comments allowed.
|
||||
//
|
||||
{
|
||||
// The number of seconds to cache captured data for before logging.
|
||||
// The encoded data which does not reach payload size
|
||||
// stays in memory and is not logged until this number of
|
||||
// seconds elapses.
|
||||
"latency" : 10,
|
||||
|
||||
// The maximum encoded data (payload) size per message, bytes.
|
||||
// As soon as payload exceeds this number of bytes,
|
||||
// it is formatted into a message and logged.
|
||||
"payload" : 2048,
|
||||
|
||||
// Logged data set parameters
|
||||
"log": {
|
||||
// If true, user input is logged.
|
||||
"input" : false,
|
||||
|
||||
// If true, terminal output is logged.
|
||||
"output" : true,
|
||||
|
||||
// If true, terminal window size changes are logged.
|
||||
"window" : true
|
||||
},
|
||||
|
||||
// Logging limit parameters
|
||||
"limit": {
|
||||
// The maximum rate messages could be logged at, bytes/sec.
|
||||
"rate" : 16384,
|
||||
|
||||
// The number of bytes by which logged messages are allowed to exceed
|
||||
// the rate limit momentarily, i.e. "burstiness".
|
||||
"burst" : 32768,
|
||||
|
||||
// The logging limit action.
|
||||
// If set to "pass" no logging limits will be applied.
|
||||
// If set to "delay", logging will be throttled.
|
||||
// If set to "drop", messages exceeding limits will be dropped.
|
||||
"action" : "pass"
|
||||
},
|
||||
|
||||
// File writer parameters
|
||||
"file": {
|
||||
// The "file" writer log file path.
|
||||
// "path" : ""
|
||||
},
|
||||
|
||||
// Syslog writer parameters
|
||||
"syslog": {
|
||||
// The syslog facility "syslog" writer should use for messages.
|
||||
"facility" : "authpriv",
|
||||
|
||||
// The syslog priority "syslog" writer should use for messages.
|
||||
"priority" : "info"
|
||||
},
|
||||
|
||||
// The type of "log writer" to use for logging. The writer needs
|
||||
// to be configured using its dedicated parameters.
|
||||
"writer" : "file"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue