Currently, I'm sending Lambda log from Cloud Watch log -> Kinesis Firehose -> S3.
From S3 I'm using siem to perform ETL in order to import data into OpenSearch.
All my Lambda function logs are outputted as JSON format. But the Lambda default logs are not.
START RequestId: d0ba05dc-8506-11e8-82ab-afe2adba36e5 Version: $LATEST <<< This is Lambda default log
{"message" : "Hello world"} <<< This is the log from my Lambda code
END RequestId: d0ba05dc-8506-11e8-82ab-afe2adba36e5 <<< This is Lambda default log
So after I ran siem ETL, the log on OpenSearch get the following error:
error.message:invalid json file: Expecting value: line 1 column 1 (char 0)
Which is the result of Lambda default log parsing, I think.
How can I skip the above error?
Note: I took a look at user.ini and aws.ini but It seems there is no setting that relate to this problem.
Currently, I'm sending Lambda log from Cloud Watch log -> Kinesis Firehose -> S3. From S3 I'm using siem to perform ETL in order to import data into OpenSearch.
All my Lambda function logs are outputted as JSON format. But the Lambda default logs are not.
So after I ran siem ETL, the log on OpenSearch get the following error:
error.message:invalid json file: Expecting value: line 1 column 1 (char 0)
Which is the result of Lambda default log parsing, I think.How can I skip the above error? Note: I took a look at user.ini and aws.ini but It seems there is no setting that relate to this problem.
Thanks & Regards.