You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the SQS input plugin only handles message body, no matter there are message attributes defined by the user. There is a need to handle those attributes when receiving log events because they could contain relevant metadata for the event logged.
We, for example, have implemented a Python logging handler that sends JSON records containing log messages to a SQS queue. Those messages are read by Logstash, processed and indexed in Elasticsearch.
With the current implementation of the SQS input plugin, we cannot enrich those records with context metadata (like the cloud region were the service emitting the logs is running).
Using SQS message user attributes, we could add alongside to the log records some metadata to enrich the corresponding event logged.
The idea could be to handle those user attributes in
Currently the SQS input plugin only handles message body, no matter there are message attributes defined by the user. There is a need to handle those attributes when receiving log events because they could contain relevant metadata for the event logged.
We, for example, have implemented a Python logging handler that sends JSON records containing log messages to a SQS queue. Those messages are read by Logstash, processed and indexed in Elasticsearch.
The content of those JSON records is defined by https://docs.python.org/3/library/logging.html#logrecord-attributes.
With the current implementation of the SQS input plugin, we cannot enrich those records with context metadata (like the cloud region were the service emitting the logs is running).
Using SQS message user attributes, we could add alongside to the log records some metadata to enrich the corresponding event logged.
The idea could be to handle those user attributes in
logstash-integration-aws/lib/logstash/inputs/sqs.rb
Line 132 in 183d113
I already started implementing this and will submit a PR shortly for review.
The text was updated successfully, but these errors were encountered: