- Newest
- Most votes
- Most comments
Hi.
The data comes from an mqtt topic, and can be seen in the cloudwatch log, so I know my select statement is sound. I think i have given the IAM role the correct permissions.
Are you looking in the AWSIotLogsV2 log group? And at the RuleMatch and RuleExecution event types?
https://docs.aws.amazon.com/iot/latest/developerguide/cwl-format.html#rule-engine-logs
If your rule is suffering an error during the rule action, you should see it in the RuleExecution event type.
One further question, why, after i have deactiveted a rule, does it still appear in the cloudwatch logs?
This question makes me think you're not looking at RuleExecution.
describes how to enter the 'timestamp value' but does not say what is needed in the 'timestamp unit' field
time_to_epoch() returns the epoch time in milliseconds.
Relevant content
- Accepted Answerasked 2 years ago
- asked a year ago
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
thanks for this answer, how do I see the AWSIotLogsV2 group, it's not listed in my log groups?
IoT logging is not enabled by default, so you will need to enable it: https://docs.aws.amazon.com/iot/latest/developerguide/configure-logging.html