Use opcode *OPNUM* instead of 0 (Query). For example, ``sdig 192.0.2.1 53 example.com SOA opcode 4`` sends a ``NOTIFY``.
cookie *COOKIE*
if *COOKIE* is ``-`` send a random client cookie. Otherwise send the given cookie, which should be a hex string received from a server earlier.
-otid *TraceID*
+traceid *TraceID*
include a TraceID and an empty SpanID value into the EDNS data. If TraceID is ``-``, a random TraceID is generated, otherwise it is a hex string.
Examples
--------
Finally, if a RPZ or custom Lua policy has been applied, response messages also contain the applied policy name and some tags.
This is particularly useful to detect and act on infected hosts.
-The Protobuf loggging stream can also include event information in a proprietary format and (starting with version 5.3.0) OpenTelemetry Trace data.
+The Protobuf logging stream can include event information in a proprietary format and (starting with version 5.3.0) OpenTelemetry Trace data.
See :ref:`event-tracing` for more information.
Configuring Protocol Buffer logs
"[proxy UDP(0)/TCP(1) SOURCE-IP-ADDRESS-AND-PORT DESTINATION-IP-ADDRESS-AND-PORT] "
"[cookie -/HEX] "
"[dumpluaraw] [opcode OPNUM] "
- "[otid -/HEX]"
+ "[traceid -/HEX]"
<< endl;
}
else if (strcmp(argv[i], "dumpluaraw") == 0) {
dumpluaraw = true;
}
- else if (strcmp(argv[i], "otid") == 0) {
+ else if (strcmp(argv[i], "traceid") == 0) {
if (argc < i + 2) {
- cerr << "otid needs an argument" << endl;
+ cerr << "traceid needs an argument" << endl;
exit(EXIT_FAILURE);
}
auto traceIDArg = std::string(argv[++i]);
else {
auto traceIDStr = makeBytesFromHex(traceIDArg);
if (traceIDStr.size() > traceid.size()) {
- cerr << "Maximum length of TraceID is " << traceid.size() << " bytes" << endl;
+ cerr << "Maximum length of traceid is " << traceid.size() << " bytes" << endl;
exit(EXIT_FAILURE);
}
traceIDStr.resize(traceid.size());