bin/XEtemplates/Query Timeouts.xml

<event_sessions xmlns="http://schemas.microsoft.com/sqlserver/2008/07/extendedeventconfig">
   <event_session name="Query Timeouts" maxMemory="4" eventRetentionMode="allowSingleEventLoss" trackCausality="true" dispatchLatency="5" maxEventSize="0" memoryPartitionMode="none">
    <templateCategory>
      <!-- _locID_text="templateCategory" _locComment = "" -->Query Execution</templateCategory>
    <templateName>
      <!-- _locID_text = "templateName" _locComment = "" -->Query Timeouts</templateName>
    <templateDescription>
      <!-- _locID_text = "templateDescription" _locComment = "" -->Tracks query timeouts.</templateDescription>
      <event package="sqlserver" name="sql_statement_completed">
         <action package="sqlserver" name="query_hash" />
         <action package="sqlserver" name="session_id" />
         <action package="sqlserver" name="tsql_stack" />
      </event>
      <event package="sqlserver" name="sql_statement_starting">
         <action package="sqlserver" name="query_hash" />
         <action package="sqlserver" name="session_id" />
         <action package="sqlserver" name="tsql_stack" />
      </event>
      <target package="package0" name="pair_matching">
         <parameter name="begin_event" value="sqlserver.sql_statement_starting" />
         <parameter name="begin_matching_actions" value="sqlserver.session_id, sqlserver.tsql_stack" />
         <parameter name="end_event" value="sqlserver.sql_statement_completed" />
         <parameter name="end_matching_actions" value="sqlserver.session_id, sqlserver.tsql_stack" />
         <parameter name="respond_to_memory_pressure" value="0" />
      </target>
   </event_session>
</event_sessions>