Filtering Events in Event Grid - azure-eventgrid

I have added an Event Subscription on my Storage Account which will trigger on the Blob Created event. But I want to ensure that the Event grid is only triggered if I upload my blob in a particular Container/directory or it should be uploaded only if it has the mentioned prefix. I have tried using the filters present in Event Grid
Filter Value
/blobServices/default/containers/MyContainer/blobs/Test
/blobServices/default/containers/MyContainer/
but both of the filters doesn't seem to be working as my EventGrid doesn't trigger any events.
PS I have read this documentation
https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview?WT.mc_id=AZ-MVP-5003556#filtering-events and still unable to achieve what I require

Make sure your Storage Account is Version 2.(it's really important check it)
if it's V1 you can change it in your Storage Account like this:
use this as a filter for your specific Container.
/blobServices/default/containers/MyContainer/

Related

How to create custom messages for alerting monitors in OpenSearch, Kibana?

I am struggling on creating a customized message for my OpenSearch alerting system. I am creating an alerting system that would trigger the alert for a particular event(e.g CPU utilization if a particular service reaches a specific threshold). I would like for this customized message to include any fields/metrics that I am tracking, or even if I would like to attach a dashboard link to message, or any name. Currently OpenSearch is only allowing me to include messages related to the alerting page. I attached picture for clairty
While browsing the web I noticed that I can implement some JSON mechanisms referencing the Mustache template. Any suggestions or walk through or how it can be done. My overall goal is to include a link & custom message in the alerting message that will be sent out to required destination.
The type of messages thats included in OpenSearch alerting page.
#Viewsp although this not related to Elasticsearch (wrong tag included), but you can refer to the fields in payload or aggregation resultset of the alert using similar approach as shown in your snapshot, its just the path of field which will be different.
So, if you have a field called cpu in your log, it can be accessed as: {{ctx.payload.hits.hits[0].cpu}} from payload depending on the _source log field hierarchy. Basically hits[0] refers to the first result in your search payload which is followed by telemetry path of your field to be included.
I would suggest creating a watcher for your usecase to have more knowledge on how fields can be accessed and how does the ctx.payload look like (including aggregations):
Watcher from Kibana :https://www.elastic.co/guide/en/kibana/current/watcher-ui.html
Watcher from DevTools: https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-alerting.html

Missing GA4 event parameters

I have recently started to use Google Analytics 4 for event tracking, using Google Tag Manager to send events to Analytics. I have set up the custom variables in Tag Manager as well as in GA4.
Everything seems to work very well in Tag Manager's debug mode, and also if I look up the events in real-time view I get the requested event along with all the parameters I have set in Tag Manager. However, once I look up the events for the last couple of days in the Engagement -> Event view, a couple of my parameters are missing, and also I'm not getting the same hit count for each parameter, even though each event has all parameters set:
As you can see, 86 events have been recorded, but the event count for the parameters widely varies.
Here's a screenshot of my Tag manager settings:
I have tried to set up a new event with the same parameters, but (logically) I got the same result. I am under the strong impression I'm missing something obvious here. Does anyone have experience with this, or has anyone come across this same issue?
To be honest, you can just try to click on mark as conversion in the Events tab, and this should save them. I think for some reason GA4 doesn't save parameters otherwise...
i cant get this til work with fields and parameters for an event so i try to create a user custom dimension instead and also to send it as a content group and as user property
also i can see the user id under app instance for the standard report user explorer
but i can't filter on or select this one myself
i cant create the custom parameter reports like gerrit did
but yeah create them as custom dimensions /metric first should be the way
ga4 has a bug when you edit a standard report, you add 3 card and deselect one it still thinks you are maxed out and you have to start over...
the test internal users filters dont work, though you can see data in debug and under events, but since i know they work i know try to just make the filters active

AWS Lambda : creating the trigger

When I try to add the trigger, I get the following error:
"There was an error creating the trigger: Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type."
I'm not sure what's gone wrong here.
One reason could be that some other lambda function previously using the same trigger was deleted. This does not automatically clear the event notification from the S3 side. You have to navigate to the S3 console and manually delete the stale event notifications. Once that is done, you should be able to create the same trigger again for another lambda function.
Navigate to S3 and click on the name of your bucket.
Click on the “Properties” tab.
Scroll down to the Advanced properties and on the events section you should see 1 or more active notifications.
Click on the square to edit notifications and delete the notification that is still listening to your lambda function in error.
Congrats, no more dangling reference!

TFS Alert when label is created

Can I configure an alert when a TFS Label is created ? I don't find that option in the current predefined alerts. These are the ones I found:
And I want when a label is created:
Send an email notification.
No, this is not possible using the standard Alert features.
I created my own solution! I don't know how much access you have to your on-premise TFS instance, but you need to be able to execute t-sql scripts against the TFS mssql database. My solution is here: https://github.com/Antebios/tfs-label-notification
And when anyone creates a TFSVC label I get an email alert that looks like this:
Basically, I created a database trigger to populate a table. I query that table and send an email out, then mark the label as sent. I also have a trigger to delete form that table just in case the label gets deleted. I wrote the service in .NET Core just in case anyone wants to convert it to run within a container. Let me know if this helps or not.

Why does Dynamics CRM 2013 plugin fire twice on owner change?

I have a simple plugin for a custom entity that is set to trigger on Update of my custom entity. It is registered in the Post Operation stage. I have noticed some strange behaviour when I make changes to the Owner field of the record in addition to other standard fields (e.g. text boxes, dates etc).
The plugin fires the first time and the only attributes that come across in the image are all the regular fields. The owner field does not come across.
The plugin then fires again, but the Depth property of the context is still only one (i.e. the plugin is not getting triggered by changes made in the plugin code). In this run of the plugin, the attribute that come across is only the Owner field.
My theory is that because the owner fields are 'special', the CRM is doing two different requests - one to change the regular fields, and then another request for changing the owner via an AssignRequest. However, I cannot find any 'official' documentation for this behaviour.
Can someone explain why this is happening?
I am running Dynamcs CRM 2013 UR2
The Update event fires during the Assign event. So if an assignment takes place your plug-in will execute. The same is true for SetState - if you activate/deactivate a record an Update event takes place. These items are not documented in the SDK.
A good practice is to use Attribute Filtering on your Update plugin so it only fires for the fields it is concerned about - this will, assuming it is isn't looking at the owner related fields, avoid it firing twice. If you have logic specific to record ownership you would put it in a plugin that is registered on the Assign event.
I was not able to find official documentation about this, but I think Assign message is what you are looking for (if the entity is user-owned. See http://msdn.microsoft.com/en-us/library/gg328576.aspx. I would strongly recommend that you specify Filtering Attributes if you are registering a plugin on Update message. You could also debug your plugin and inspect MessageName property of plugin context and see what message gets triggered. I hope this helps.

Resources