# Cast logs not appearing in CloudWatch

**URL:** <https://forum.datomic.com/t/cast-logs-not-appearing-in-cloudwatch/1767>\
**Category:** Troubleshooting\
**Created:** [February 9, 2021, 11:20am UTC](https://forum.datomic.com/t/cast-logs-not-appearing-in-cloudwatch/1767 "2021-02-09T11:20:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wkok](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/wkok/32/476_2.png) [@wkok](https://forum.datomic.com/u/wkok)\
**Post date:** [February 9, 2021, 11:20am UTC](https://forum.datomic.com/t/cast-logs-not-appearing-in-cloudwatch/1767/1 "2021-02-09T11:20:50Z")

</div>

I’ve followed the instructions here: [Monitoring Ions | Datomic](https://docs.datomic.com/cloud/ions/ions-monitoring.html)

But none of my logs end up in CloudWatch.

I have also followed the instructions in this post to look in the correct location for the logs:

> [@Where do I find the output of events from datomic ions?](https://forum.datomic.com/t/where-do-i-find-the-output-of-events-from-datomic-ions/1681):
>
> I’m using code like the following directly copied from the documentation: (cast/event {:msg "CodeDeployEvent" ::json input}) This comes from [https://docs.datomic.com/cloud/ions/ions-monitoring.html](https://docs.datomic.com/cloud/ions/ions-monitoring.html) I’m running Lambdas and they are working just fine inserting data into Datomic. I just wish to output some debug information using… well… anything. Logging, events, whatever. It seems cast/event and cast/dev are suited for this, but I don’t know where in AWS to look for their output. When I go to t…

However my own logs are not appearing. I’ve tried with cast/event, cast/dev, java logging but with no luck

Any ideas?

---

<div class="post-metadata">

**Author:** ![hden](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/hden/32/388_2.png) [@hden](https://forum.datomic.com/u/hden)\
**Post date:** [February 16, 2021, 1:55pm UTC](https://forum.datomic.com/t/cast-logs-not-appearing-in-cloudwatch/1767/2 "2021-02-16T13:55:34Z")

</div>

Similar symptom here. I’ve been trying datomic using both production topology and locally using a REPL. When deployed in the cloud, I cannot find the log anywhere in the CloudWatch Log Stream. When run locally, cast/event shows the following error

```
=> (require '[datomic.ion.cast :as cast])
nil
=> (cast/event {:msg "A" ::event ::foobar})
Execution error (IllegalArgumentException) at datomic.ion.cast.impl/fn$G (impl.clj:14).
No implementation of method: :-event of protocol: #'datomic.ion.cast.impl/Cast found for class: nil

```

Modern application often use a lifecycle and dependencies management tool such as component and duct. If cast depends on a shared global variable, maybe we should let user manage it?

---

<div class="post-metadata">

**Author:** ![jaret](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/jaret/32/45_2.png) [@jaret](https://forum.datomic.com/u/jaret)\
**Post date:** [February 17, 2021, 5:39pm UTC](https://forum.datomic.com/t/cast-logs-not-appearing-in-cloudwatch/1767/3 "2021-02-17T17:39:27Z")

</div>

Hi @hden

You need to initialize-redirect for local workflows. Your REPL is a local workflow. You can then prn all `alert`,`event` and `dev` output to `stderr`, `stdout`, for a filename. With clojure 1.10 you can also target a registered tap.

[https://docs.datomic.com/cloud/ions/ions-monitoring.html#local-workflow](https://docs.datomic.com/cloud/ions/ions-monitoring.html#local-workflow)

For @wkok,

Werner and I worked together on a support case and we found that he was using `cast/dev` which does not post to CloudWatch. Our docs were not clear on this so we added a note to the cast/dev section here: [Monitoring Ions | Datomic](https://docs.datomic.com/cloud/ions/ions-monitoring.html#dev)

> **NOTE** Configuring a destination for `cast/dev` when running in Datomic Cloud is currently not supported, and `dev` calls do not post to CloudWatch.
