I'm trying to publish an event from the console. I type in the event name and event data, click publish. The popup from the side of the console says Event publish but it never shows up in the Events.
I can publish events from that physical device and they show up in the Console events.
I was going through the Logic reformat tutorial in the documentation and it doesn't publish an event either, so I was trying to publish an event from the console to test an integration.
Which event log are you looking at? The one at the top level of your sandbox? The one inside a product? The one inside a device?
The device event log only shows events from that device. It also shows Logic events that use the asDeviceId parameter to simulate sending as a device. It will not show console-generated events or webhook responses.
The product event log will generally not show API generated events (including those from the console). It will only show Logic events that use the productId parameter to Particle.publish. It will show events from a device if it belongs to the product, whether claimed or not.
The device log Sandbox > Product Name > Devices > View device is the one I was looking at before I knew the others existed. Do you call this one the Device Event Log?
My goal is a Cloud services Logic function that reformats the data from a device and publishes an event that two different Integrations can be triggered from. I can see the Logic function is running from the "Runs" log but never see where its Particle.publish() output shows up in some event log from the invocation of the Logic function.
This is the top level sandbox event log (Events page). It should show the events that you published from the console.
If you click on the Products icon on the left side in this screen, and into a product, you'll see another Events icon; that is the product event log.
If you are looking for the Logic events, it will either be in Sandbox > Cloud Services > Events, or Sandbox > (product name) > Cloud Services > Events, depending on whether you have the productId parameter set in the Particle.publish call in Logic.
I was feeling like a newbie here but I just don't see the events icon for the product until you expand the Cloud Icon on the left and then pick events.
So to help someone reading in the future here is what understand about the various event logs:
Cloud service event log - https://console.particle.io/events shows an overall sandbox events. From the home screen, expand the Cloud services icon and select events.
Product event log - Particle Console | Build your connected product shows a product wide events. From a product screen, expand the Cloud services icon and select events will take you to the product events. This was the only place I see the particle.publish() events from a Logic function.
Device event log - click on the device id on the list of devices from the product page, shows the device event logs.