Observables
Last updated
Was this helpful?
Last updated
Was this helpful?
The Observables Filter configures the Proxy to emit a JSON payload with every request made to the microservice. This contains a variety of different information about the request being made, as well as the user/system issuing the request. These Observables can then be aggregated to perform analysis like: audits, user-experience tracking, etc.
Observable publishing defaults to stdout
but can also be published to a Kafka topic or location on disk.
Name
Type
Default
Description
logLevel
String
Info
Verbosity of logging: Warn, Info, Debug
fileName
String
blank
Name of file to write events to. (stdout if blank)
emitFullResponse
Boolean
false
*Show response body in the observable object
topic
String
""
Sets the eventType
field of the observable; used to sort and group messages by service/region/environment/etc in later analysis.
useKafka
Boolean
false
Publish observable message to a Kafka topic
enforceAudit
Boolean
false
Block requests until an observable has been successfully published to Kafka (Only applies if useKafka=true
)
encryptionAlgorithm
String
""
Type of encryption. Must be 'aes' or blank
encryptionKey
String
""
Must be blank or base 64 encoded string of 16, 24, or 32 bytes. We recommend 32.
encryptionKeyID
uint32
0
User supplied number to identify the key used in encryption
eventTopic
String
""
The Kafka topic that will hold the published observable messages
kafkaZKDiscover
Boolean
false
Kafka will be discovered through a zookeeper node
kafkaServerConnection
String
""
Comma delimited list of Kafka addresses, or if kafkaZKDiscover
is true
, a list of ZooKeeper addresses
useKafkaTLS
Boolean
false
Enable TLS communication to the supplied kafka brokers
kafkaCAs
String
""
List of file URLs that point to trusts to be used when connecting to kafka
kafkaCertificate
String
""
File URL pointing to certificate to use when connecting to kafka over TLS
kafkaCertificateKey
String
""
File URL pointing to certificate key to use when connecting to kafka
kafkaServerName
String
""
Certificate server name to use when connecting to kafka
*Note on Full Response Payloads
Turning on full response payloads (emitFullResponse=true
) can cause significant amounts of data to be written to the observable.
The observables filter will attempt to write the entire response, whether it's a:
Large data file
Full-frame JPEG
Even a multi gigabyte MP4 video
This can use significant storage resources. Make sure your provisioned infrastructure can support this filter.
Users can roll over the encryption key dynamically by changing the Observables configuration in the Proxy.
To enable convenient decryption, each key should be assigned a unique key ID.
Version
Size
Key ID
Payload
1 byte
7 bytes
8 bytes
(Size) bytes
We normally write the key id to Kafka Record Headers. Such headers are only available after Kafka Version 0.11.
Need help configuring your observables filter? Contact our team at: .