Unable to utilize logics apps to feed data in a watchlist

%3CLINGO-SUB%20id%3D%22lingo-sub-2753209%22%20slang%3D%22en-US%22%3EUnable%20to%20utilize%20logics%20apps%20to%20feed%20data%20in%20a%20watchlist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2753209%22%20slang%3D%22en-US%22%3E%3CP%3EHey%2C%3C%2FP%3E%3CP%3EI%20am%20unable%20to%20add%20an%20item%20in%20my%20choice%20of%20watchlists%20using%20entities%20like%20an%20account%2C%20computer%2C%20hostname%2C%20or%20IP%20address%2C%20the%20step%20where%20the%20watchlist%20condition%20will%20take%20an%20input%20is%20being%20skipped%20by%20the%20logic%20app%2C%20can%20anyone%20help%20regarding%20this.%3C%2FP%3E%3CP%3ETIA%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LogicAppRunTimeDetails.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F310616i299A1BA41DDC3578%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22LogicAppRunTimeDetails.PNG%22%20alt%3D%22LogicAppRunTimeDetails.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22WatchListActionLogicApp.PNG%22%20style%3D%22width%3A%20587px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F310618i577598938931103A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22WatchListActionLogicApp.PNG%22%20alt%3D%22WatchListActionLogicApp.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22WatchlistLogicApp.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F310617iFE7C39E99CE26941%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22WatchlistLogicApp.PNG%22%20alt%3D%22WatchlistLogicApp.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2753339%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20utilize%20logics%20apps%20to%20feed%20data%20in%20a%20watchlist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2753339%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1110870%22%20target%3D%22_blank%22%3E%40abubakr786%3C%2FA%3E%26nbsp%3BWould%20need%20to%20see%20a%20picture%20of%20the%20For%20each%20loop%20expanded%20to%20get%20a%20better%20idea%20of%20what%20is%20happening.%26nbsp%3B%20It%20basically%20looks%20like%20there%20are%20no%20accounts%20to%20process.%26nbsp%3B%20%26nbsp%3BHave%20you%20validated%20that%20you%20have%20accounts%20being%20returned%20from%20the%20previous%20step%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2755215%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20utilize%20logics%20apps%20to%20feed%20data%20in%20a%20watchlist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2755215%22%20slang%3D%22en-US%22%3E%3CP%3EHey%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F46875%22%20target%3D%22_blank%22%3E%40Gary%20Bushey%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20attached%20the%20details%20for%20each%20loop%20picture%2C%20along%20with%20the%20input-output%20run%20details%20for%20Get_Account%20and%20For%20each%20loop%20for%20Get_Account.%20There%20is%20an%20input%20and%20output%20link%20for%20Get_Account%2C%20Also%20an%20input%20link%20for%20for_each%20loop%20for%20Account%20but%20it%20has%20no%20output%20link.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20guess%20that%20would%20be%20the%20issue%20where%20I%20need%20help%2C%20pictures%20attacher%20for%20reference.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Expanded.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F310757i83A6BCF78C1DA877%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Expanded.PNG%22%20alt%3D%22Expanded.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22InputLinkForEachAccount.PNG%22%20style%3D%22width%3A%20306px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F310758i5B4808F16DCE4241%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22InputLinkForEachAccount.PNG%22%20alt%3D%22InputLinkForEachAccount.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22OutputLinkGetAccount.PNG%22%20style%3D%22width%3A%20299px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F310759iF7EFEF355D693E2F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22OutputLinkGetAccount.PNG%22%20alt%3D%22OutputLinkGetAccount.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2755898%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20utilize%20logics%20apps%20to%20feed%20data%20in%20a%20watchlist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2755898%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1110870%22%20target%3D%22_blank%22%3E%40abubakr786%3C%2FA%3E%26nbsp%3BThe%20images%20do%20not%20state%20if%20there%20actually%20any%20account%20entities%20found.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20do%20not%20already%20know%2C%20you%20can%20go%20to%20the%20last%20run%2C%20go%20toe%20the%20%22Entities%20-%20Get%20Accounts%22%20and%20click%20on%20it.%20In%20the%20new%20pane%20on%20the%20right%20side%20it%20will%20show%20the%20outputs%20and%20the%20Body%20field%20will%20tell%20you%20if%20it%20found%20anything.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hey,

I am unable to add an item in my choice of watchlists using entities like an account, computer, hostname, or IP address, the step where the watchlist condition will take an input is being skipped by the logic app, can anyone help regarding this.

TIALogicAppRunTimeDetails.PNGWatchListActionLogicApp.PNGWatchlistLogicApp.PNG

14 Replies

@abubakr786 Would need to see a picture of the For each loop expanded to get a better idea of what is happening.  It basically looks like there are no accounts to process.   Have you validated that you have accounts being returned from the previous step?

Hey @Gary Bushey 

I've attached the details for each loop picture, along with the input-output run details for Get_Account and For each loop for Get_Account. There is an input and output link for Get_Account, Also an input link for for_each loop for Account but it has no output link.

I guess that would be the issue where I need help, pictures attacher for reference.Expanded.PNGInputLinkForEachAccount.PNGOutputLinkGetAccount.PNG

@abubakr786 The images do not state if there actually any account entities found.

 

If you do not already know, you can go to the last run, go toe the "Entities - Get Accounts" and click on it. In the new pane on the right side it will show the outputs and the Body field will tell you if it found anything.

@Gary Bushey  No value inside the accounts output in the body, if this is what you are reffering to.

abubakr786_0-1631794827656.png

 

@abubakr786 That is exactly what I was referring to.   So your For loop isn't being executed because there is nothing for it to execute on.  At least in this case, the incident or alert has no account entities so the loop doesn't run.

I understand, so can you suggest the change? As I have tested the same for account, ipaddress, hostname, didnt returned results in any of them.

@abubakr786 The first thing would be to check that your alert/incident (depending on what trigger you are using) actually has any entities.

 

@Gary Bushey Does logic map output in any form returns the values of entities fetched? As I dont see any entity field or value in code format of the alert trigger

@abubakr786 No, you must load them like you were doing in your Logic App.

@abubakr786 @Gary Bushey correct me if I'm wrong, but i believe you will never get any entities/other useful information in your logic app/watchlist unless you run the logic app on an actual alert. Just pressing "run trigger" will end up returning blanks regardless since there is no information in the initial trigger "When a response to an Azure Sentinel alert is triggered" 

@Gary Bushey What I meant to ask was that at any part in the logic app does the input/output in raw contains the fetched value of an entity which is the exact value of the entity that is added to the watchlist.

Please also share if the query being used to trigger certain alert/incident requires projection or retrieval of entities those are added in watchlists, however the values required by Get action are part of the payload of the event.

@abubakr786 Not quite sure what you are asking.  When you use the Logic app action to load an entity then you can access the raw (JSON) data that has been returned.

 

Not sure what you mean by "...the exact value of the entity that is added to the watchlist" as a watchlist can contain a lot of different types of data.   It all depends on how you have setup the watchlist.

@Gary Bushey This is what I asked, When you use the Logic app action to load an entity then you can access the raw (JSON) data that has been returned since no value returned, I couldn't find the what is actually not returning the data.

Is there any blog or documentation available of the implementation that you can share? All I need is to add an item in the custom watchlist doesnt matter what the trigger is.