Stackdriver logging export exports the entire json object, not just the jsonPayload I sent it.
I am sending JSON data to stackdriver via the Python SDK.
The data get ingested into Stackdriver fine, in the below format
{
insertId: ""
jsonPaload: [what I sent]
labels: []
logname: ""
receiveTimestamp: ""
resource: {}
timestamp: ""
}
When I export the log to GCS, that entire payload is sent, not just my jsonPload and there appears to be no way to just send my data to GCS.
The issue this causes is that I have strip out my jsonPload data if I want to use it again, e.g. mydata=json.loads(export_line)['jsonPayload'].
Example: A vendor wants my bro logs. I can't just give them the GCS logs because the bro data are nested in jsonPayload. So, I have to either pre-parse the data and manually send to GCS or pull it from GCS, parse it, and give it to the vendor.
I would expect that there should be a way for me to export ONLY the jsonPaload that I sent it. i.e. I send stackdriver data, tell it to export my data, and only my data are exported, not its internal telemetry/additions.