From Kinesis, you can configure AWS services such as Amazon Data Firehose and AWS Lambda to consume the stream and store the data. Instead of using AWS Lambda, do you consider below?
So technically, we can get the database audit logs to Chronicle via below:
Hi @hzmndt , We have logs from many sources coming into this stream. That's why we opted for using a lambda function. Since we can segregate the logs using an if.. else condition and send logs to Google Chronicle by using a webhook.
Hi Everyone, Could anyone please help us here? We are trying to pull logs from a Kinesis Stream and send it to Chronicle with a Lambda Function. The problem here is this stream has logs from multiple sources. We can use a webhook to send the logs to the specific log type. Thank you in advance.
Lambda's are fairly flexible as they're just code snippets that run and you can make them do just about anything you want. They're similar to Cloud Functions on Google Cloud.
So given that, what you describe would be possible. It sounds like logs from many different sources are the input to the function, then in your code you'd interrogate each log line and use some type of matching to determine the log type to use for SecOps. A very basic psuedo-code would be something like:
log_line = <INBOUND LOG STREAM>
if 'oktaUserAgentExtended' in log_line:
# Send to SecOps with "OKTA" log type
elif 'Microsoft-Windows-Security-Auditing' in log_line:
# Send to SecOps with "WINEVTLOG" log type
else:
# Send to SecOps with "UDM" log type or drop
Lambda's are fairly flexible as they're just code snippets that run and you can make them do just about anything you want. They're similar to Cloud Functions on Google Cloud.
So given that, what you describe would be possible. It sounds like logs from many different sources are the input to the function, then in your code you'd interrogate each log line and use some type of matching to determine the log type to use for SecOps. A very basic psuedo-code would be something like:
log_line = <INBOUND LOG STREAM>
if 'oktaUserAgentExtended' in log_line:
# Send to SecOps with "OKTA" log type
elif 'Microsoft-Windows-Security-Auditing' in log_line:
# Send to SecOps with "WINEVTLOG" log type
else:
# Send to SecOps with "UDM" log type or drop
Hi @mikewilusz , Thank you for the revert Do you know or have any sample lambda function to send logs to Chronicle from a Kinesis Stream or AWS S3 or SQS etc..? It would be really helpful if you can share that code.
From Kinesis, you can configure AWS services such as Amazon Data Firehose and AWS Lambda to consume the stream and store the data. Instead of using AWS Lambda, do you consider below?
So technically, we can get the database audit logs to Chronicle via below:
From Kinesis, you can configure AWS services such as Amazon Data Firehose and AWS Lambda to consume the stream and store the data. Instead of using AWS Lambda, do you consider below?
So technically, we can get the database audit logs to Chronicle via below:
Hi @hzmndt , We have logs from many sources coming into this stream. That's why we opted for using a lambda function. Since we can segregate the logs using an if.. else condition and send logs to Google Chronicle by using a webhook.