MS Flow logging - monitoring

%3CLINGO-SUB%20id%3D%22lingo-sub-212069%22%20slang%3D%22en-US%22%3EMS%20Flow%20logging%20-%20monitoring%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-212069%22%20slang%3D%22en-US%22%3E%3CP%3EI%20haven't%20found%20any%20techcommunity%20article%20which%20answers%20any%20of%20the%20following%20questions...so%20i%20hope%20you%20have%20some%20answers%20for%20me%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E(btw%3A%20i'm%20new%20to%20this%20MS%20Flow%20World)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EIs%20there%20any%20big%20picture%20for%20an%20Admin%20to%20see%20all%20existing%20MS%20Flows%20inside%20of%20an%20Org%20%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWith%20Get-AdminFlow%20i%20can%20pull%20all%20the%20existing%20MS%20Flows.%20That%20is%20a%20nice%20list%20but%20it%20does%20not%20show%20me%20the%20content%20(conditions%2C%20actions%20and%20the%20structure%20of%20the%20flow%20itself)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EAre%20there%20any%20Logs%20which%20each%20MS%20Flow%20creates%20during%2Fand%20after%20each%20run%20%3F%3C%2FSTRONG%3E%20(successful%2C%20not%20successful%2C%20..)%3C%2FP%3E%3CP%3ELogs%20which%20can%20be%20collected%20somehow%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3CP%3Estefan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-212069%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-227970%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Flow%20logging%20-%20monitoring%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-227970%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20Rebekka!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethat%20is%20a%20lot%20of%20information%20(some%20i%20know%20already%3A).%3CBR%20%2F%3EBTW%2C%20the%20Video%20is%20great!%3C%2FP%3E%3CP%3ESo%20if%20i%20understand%20correctly%2C%20the%20upcoming%20Analytics%20stuff%20is%20only%20available%20with%20Flow%20P2%2C%20right%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20still%20missing%20the%20piece%20of%20information%20where%20i%20can%20access%20error%20logs%20from%20every%20flow%20(in%20case%20of%20an%20error)%26nbsp%3B%20without%20going%20via%20the%20Analytics%20Dashboard%20of%20Flow.%26nbsp%3B%20i%20want%20to%20pull%20this%20via%20API%20and%2For%20cmdlets%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%20again%3C%2FP%3E%3CP%3Estefan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-227717%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Flow%20logging%20-%20monitoring%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-227717%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F44882%22%20target%3D%22_blank%22%3E%40Stefan%20Fried%3C%2FA%3E%2C%3C%2FP%3E%3CP%3ESince%20a%20couple%20of%20months%20there%20is%20a%20PowerApps%20and%20Flow%20Powershell%20module%20available.%20Check%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowerapps%2Fadministrator%2Fpowerapps-powershell%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowerapps%2Fadministrator%2Fpowerapps-powershell%3C%2FA%3E.%20The%20cmdlets%20will%20not%20give%20you%20the%20internal%20structure%20of%20the%20Flow%2C%20but%20you%20are%20able%20to%20get%20Flow%20runs%20(%3CSPAN%3EGet-FlowRun%3C%2FSPAN%3E)%20or%20get%20used%20connections%20(%3CSPAN%3EGet-PowerAppConnection%3C%2FSPAN%3E).%3C%2FP%3E%3CP%3EThere%20are%20also%20a%20whole%20bunch%20of%20administrative%20cmdlets%20but%20without%20a%20P2%20these%20cmdlets%20only%20give%20you%20info%20about%20Flows%20that%20are%20made%20by%20or%20shared%20with%20your%20user%20account.%20With%20a%20P2%20and%20the%20correct%20administrative%20role%20in%20O365%20and%20the%20PowerApps%2FFlow%20environments%20you%20can%20get%20info%20about%20the%20Flow%20that%20are%20not%20shared%20with%20you.%3C%2FP%3E%3CP%3EWith%20a%20P2%20you%20can%20also%20use%20the%20Flow%20management%20connector%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fconnectors%2Fflowmanagement%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fconnectors%2Fflowmanagement%2F%3C%2FA%3E%3A(%3C%2Fimg%3E%20administering%20Flow%20by%20using%20Flow.%26nbsp%3B%3C%2FP%3E%3CP%3EA%20similar%20connector%20for%20PowerApps%20was%20announced%20during%20the%20Business%20Application%20Summit%20a%20couple%20of%20weeks%20ago.%20With%20these%20two%20connectors%20combined%20you%20can%20build%20your%20own%20PowerApps%20and%20Flow%20admin%20center%20using%20PowerApps%20and%20Flow%20if%20you%20want%20something%20else%20than%20Microsoft%20provides.%3C%2FP%3E%3CP%3EAn%20on-demand%20session%20on%20this%20topic%20you%20can%20find%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fbusinessapplicationssummit%2Fvideo%2FBAS2018-111120%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fbusinessapplicationssummit%2Fvideo%2FBAS2018-111120%3C%2FA%3E.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-227504%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Flow%20logging%20-%20monitoring%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-227504%22%20slang%3D%22en-US%22%3E%3CP%3Ei%20try%20my%20luck%20again%20and%20ask%20the%20community%20if%20there%20is%20a%20chance%20to%20get%20access%20to%20MS%20Flow%20logs%20(powershell%20or%20api).%3C%2FP%3E%3CP%3Eit%20would%20be%20great%20if%20someone%20has%20an%20answer%20on%20that%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-212829%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Flow%20logging%20-%20monitoring%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-212829%22%20slang%3D%22en-US%22%3E%3CP%3Ethank%20you%20Dean%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20found%20an%20alternative%20for%20that.%20(without%20the%20need%20of%20buying%20a%20P2%20license)%3C%2FP%3E%3CP%3E--%26gt%3B%20Office%20365%20CLI%20and%20the%20MS%20flow%20stuff%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20this%20does%20not%20help%20that%20much%20because%20the%20structure%20itself%20can%20also%20not%20be%20retrieved.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20second%20question%20is%20the%20most%20important%20one%20for%20me.%20To%20find%20out%20if%20there%20are%20any%20MS%20Flow%26nbsp%3B%20logs%20available%20which%20i%20can%20collect.%20I%20really%20hope%20that%20there%20is%20a%20way%20because%20the%20UI%20provides%20you%20with%20error%20and%20issues%20indication%20in%20each%20of%20the%20flow.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eany%20ideas%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-212782%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Flow%20logging%20-%20monitoring%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-212782%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20go%20to%20the%20Flow%20Admin%20Center%20(you%20need%20to%20have%20a%20P2%20license)%2C%20then%20click%20on%20the%20Environments%2C%20choose%20the%20default%20Environment%2C%20click%20Resources%2C%20then%20Flows%2C%20you%20will%20see%20a%20listing%2C%20clicking%20on%20the%20Info%20button%20will%20show%20the%20Connections%20(but%20not%20the%20actions%20or%20structure)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Super Contributor

I haven't found any techcommunity article which answers any of the following questions...so i hope you have some answers for me :)

(btw: i'm new to this MS Flow World)

 

Is there any big picture for an Admin to see all existing MS Flows inside of an Org ?

With Get-AdminFlow i can pull all the existing MS Flows. That is a nice list but it does not show me the content (conditions, actions and the structure of the flow itself)

 

Are there any Logs which each MS Flow creates during/and after each run ? (successful, not successful, ..)

Logs which can be collected somehow ?

 

thank you

stefan

 

 

 

 

5 Replies
Highlighted

You can go to the Flow Admin Center (you need to have a P2 license), then click on the Environments, choose the default Environment, click Resources, then Flows, you will see a listing, clicking on the Info button will show the Connections (but not the actions or structure)

 

Highlighted

thank you Dean

 

I've found an alternative for that. (without the need of buying a P2 license)

--> Office 365 CLI and the MS flow stuff

 

However this does not help that much because the structure itself can also not be retrieved.

 

My second question is the most important one for me. To find out if there are any MS Flow  logs available which i can collect. I really hope that there is a way because the UI provides you with error and issues indication in each of the flow.

 

any ideas ?

Highlighted

i try my luck again and ask the community if there is a chance to get access to MS Flow logs (powershell or api).

it would be great if someone has an answer on that

 

thank you

Highlighted

Hi @Stefan Fried,

Since a couple of months there is a PowerApps and Flow Powershell module available. Check https://docs.microsoft.com/en-us/powerapps/administrator/powerapps-powershell. The cmdlets will not give you the internal structure of the Flow, but you are able to get Flow runs (Get-FlowRun) or get used connections (Get-PowerAppConnection).

There are also a whole bunch of administrative cmdlets but without a P2 these cmdlets only give you info about Flows that are made by or shared with your user account. With a P2 and the correct administrative role in O365 and the PowerApps/Flow environments you can get info about the Flow that are not shared with you.

With a P2 you can also use the Flow management connector (https://docs.microsoft.com/en-us/connectors/flowmanagement/:( administering Flow by using Flow. 

A similar connector for PowerApps was announced during the Business Application Summit a couple of weeks ago. With these two connectors combined you can build your own PowerApps and Flow admin center using PowerApps and Flow if you want something else than Microsoft provides.

An on-demand session on this topic you can find here: https://www.microsoft.com/en-us/businessapplicationssummit/video/BAS2018-111120

Highlighted

Thank you Rebekka!

 

that is a lot of information (some i know already:).
BTW, the Video is great!

So if i understand correctly, the upcoming Analytics stuff is only available with Flow P2, right ?

 

I'm still missing the piece of information where i can access error logs from every flow (in case of an error)  without going via the Analytics Dashboard of Flow.  i want to pull this via API and/or cmdlets

 

thank you again

stefan