<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Want to merge two query with different fields in one in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Want-to-merge-two-query-with-different-fields-in-one/m-p/579995#M202088</link>
    <description>&lt;P&gt;&amp;nbsp;Actually I want to calculate the&amp;nbsp; friction rate&amp;nbsp; &amp;nbsp;of all the status which I am getting from query&lt;/P&gt;&lt;P&gt;You can see all below status with queries&lt;/P&gt;&lt;P&gt;Manual Review - Splunk Query&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;index = pcf_logs cf_org_name = creorg OR cf_org_name = SvcITDnFAppsOrg cf_app_name=VerifyReviewConsumerService host="*"&lt;BR /&gt;| search msg="*Manual Review*"&lt;BR /&gt;| eval _raw = msg&lt;BR /&gt;| rex "(?&amp;lt;CRE_Creation_Date&amp;gt;\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}\s..)"&lt;BR /&gt;| rex "Request\#\:\s*(?&amp;lt;Manual_CRE_ID&amp;gt;\d+)"&lt;BR /&gt;| rex "with(?&amp;lt;Manual_Review&amp;gt;\s\w+\s\w+)"&lt;BR /&gt;| rex "(?&amp;lt;Failed_Reason&amp;gt;Rule.*)$"&lt;BR /&gt;| eval Failed_Reason=trim(Failed_Reason, "Rule ")&lt;BR /&gt;| stats count by CRE_Creation_Date Manual_CRE_ID Manual_Review Failed_Reason&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;status Approved - Splunk Query&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;index = pcf_logs cf_org_name = creorg OR cf_org_name = SvcITDnFAppsOrg cf_app_name=VerifyReviewConsumerService host="*"&lt;BR /&gt;| search msg = "*status Approved*"&lt;BR /&gt;| eval _raw = msg&lt;BR /&gt;| rex "INFO\s\|\s(?&amp;lt;CRE_Creation_Date&amp;gt;\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}\s..)"&lt;BR /&gt;| rex "Request\#\:\s*(?&amp;lt;Approved_CRE_ID&amp;gt;\d+)"&lt;BR /&gt;| rex "status(?&amp;lt;Approved&amp;gt;\s........)"&lt;BR /&gt;| stats count by CRE_Creation_Date Approved_CRE_ID Approved&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;status Rejected - Splunk Query&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;index = pcf_logs cf_org_name = creorg OR cf_org_name = SvcITDnFAppsOrg cf_app_name=VerifyReviewConsumerService host="*"&lt;BR /&gt;| search msg="*Rejected*"&lt;BR /&gt;| eval _raw = msg&lt;BR /&gt;| rex "(?&amp;lt;CRE_Creation_Date&amp;gt;\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}\s..)"&lt;BR /&gt;| rex "Request\#\:\s*(?&amp;lt;Rejected_CRE_ID&amp;gt;\d+)"&lt;BR /&gt;| rex status(?&amp;lt;Rejected&amp;gt;\s\w+)&lt;BR /&gt;| rex (?&amp;lt;Failed_Reason&amp;gt;Rule.*)$&lt;BR /&gt;| eval Failed_Reason=trim(Failed_Reason, "Rule ")&lt;BR /&gt;| stats count by CRE_Creation_Date Rejected_CRE_ID Rejected Failed_Reason&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 13:04:54 GMT</pubDate>
    <dc:creator>nikhilup</dc:creator>
    <dc:date>2022-01-05T13:04:54Z</dc:date>
    <item>
      <title>Want to merge two query with different fields in one</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-merge-two-query-with-different-fields-in-one/m-p/579986#M202081</link>
      <description>&lt;P&gt;First query&lt;BR /&gt;index = pcf_logs cf_org_name = creorg OR cf_org_name = SvcITDnFAppsOrg cf_app_name=VerifyReviewConsumerService host="*" | eval _raw = msg&lt;BR /&gt;| rex "Request\#\:\s*(?&amp;lt;ID1&amp;gt;\d+) with (?&amp;lt;Status&amp;gt;\w+.\w+)"|rex "CRERequestId\"\:\"(?&amp;lt;ID2&amp;gt;[^\"]+)"&lt;BR /&gt;| eval ID=coalesce(ID1,ID2)&lt;BR /&gt;| stats latest(Status) as Status by ID&lt;BR /&gt;| eval Status=trim(Status, "status ")&lt;BR /&gt;| stats count by Status&lt;/P&gt;&lt;P&gt;Second query&lt;/P&gt;&lt;P&gt;index = pcf_logs cf_org_name = creorg OR cf_org_name = SvcITDnFAppsOrg cf_app_name=VerifyReviewConsumerService host="*"&lt;BR /&gt;| search msg="*Rejected*"&lt;BR /&gt;| eval _raw = msg&lt;BR /&gt;| rex "(?&amp;lt;CRE_Creation_Date&amp;gt;\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}\s..)"&lt;BR /&gt;| rex "Request\#\:\s*(?&amp;lt;Rejected_CRE_ID&amp;gt;\d+)"&lt;BR /&gt;| rex status(?&amp;lt;Rejected&amp;gt;\s\w+)&lt;BR /&gt;| rex (?&amp;lt;Failed_Reason&amp;gt;Rule.*)$&lt;BR /&gt;| eval Failed_Reason=trim(Failed_Reason, "Rule ")&lt;BR /&gt;| stats count by CRE_Creation_Date Rejected_CRE_ID Rejected Failed_Reason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 12:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-merge-two-query-with-different-fields-in-one/m-p/579986#M202081</guid>
      <dc:creator>nikhilup</dc:creator>
      <dc:date>2022-01-05T12:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Want to merge two query with different fields in one</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-merge-two-query-with-different-fields-in-one/m-p/579993#M202087</link>
      <description>&lt;P&gt;Can you give (sanitised) examples of the events you are working with and the aim of the merged query?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 12:47:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-merge-two-query-with-different-fields-in-one/m-p/579993#M202087</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-05T12:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Want to merge two query with different fields in one</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-merge-two-query-with-different-fields-in-one/m-p/579995#M202088</link>
      <description>&lt;P&gt;&amp;nbsp;Actually I want to calculate the&amp;nbsp; friction rate&amp;nbsp; &amp;nbsp;of all the status which I am getting from query&lt;/P&gt;&lt;P&gt;You can see all below status with queries&lt;/P&gt;&lt;P&gt;Manual Review - Splunk Query&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;index = pcf_logs cf_org_name = creorg OR cf_org_name = SvcITDnFAppsOrg cf_app_name=VerifyReviewConsumerService host="*"&lt;BR /&gt;| search msg="*Manual Review*"&lt;BR /&gt;| eval _raw = msg&lt;BR /&gt;| rex "(?&amp;lt;CRE_Creation_Date&amp;gt;\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}\s..)"&lt;BR /&gt;| rex "Request\#\:\s*(?&amp;lt;Manual_CRE_ID&amp;gt;\d+)"&lt;BR /&gt;| rex "with(?&amp;lt;Manual_Review&amp;gt;\s\w+\s\w+)"&lt;BR /&gt;| rex "(?&amp;lt;Failed_Reason&amp;gt;Rule.*)$"&lt;BR /&gt;| eval Failed_Reason=trim(Failed_Reason, "Rule ")&lt;BR /&gt;| stats count by CRE_Creation_Date Manual_CRE_ID Manual_Review Failed_Reason&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;status Approved - Splunk Query&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;index = pcf_logs cf_org_name = creorg OR cf_org_name = SvcITDnFAppsOrg cf_app_name=VerifyReviewConsumerService host="*"&lt;BR /&gt;| search msg = "*status Approved*"&lt;BR /&gt;| eval _raw = msg&lt;BR /&gt;| rex "INFO\s\|\s(?&amp;lt;CRE_Creation_Date&amp;gt;\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}\s..)"&lt;BR /&gt;| rex "Request\#\:\s*(?&amp;lt;Approved_CRE_ID&amp;gt;\d+)"&lt;BR /&gt;| rex "status(?&amp;lt;Approved&amp;gt;\s........)"&lt;BR /&gt;| stats count by CRE_Creation_Date Approved_CRE_ID Approved&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;status Rejected - Splunk Query&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;index = pcf_logs cf_org_name = creorg OR cf_org_name = SvcITDnFAppsOrg cf_app_name=VerifyReviewConsumerService host="*"&lt;BR /&gt;| search msg="*Rejected*"&lt;BR /&gt;| eval _raw = msg&lt;BR /&gt;| rex "(?&amp;lt;CRE_Creation_Date&amp;gt;\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}\s..)"&lt;BR /&gt;| rex "Request\#\:\s*(?&amp;lt;Rejected_CRE_ID&amp;gt;\d+)"&lt;BR /&gt;| rex status(?&amp;lt;Rejected&amp;gt;\s\w+)&lt;BR /&gt;| rex (?&amp;lt;Failed_Reason&amp;gt;Rule.*)$&lt;BR /&gt;| eval Failed_Reason=trim(Failed_Reason, "Rule ")&lt;BR /&gt;| stats count by CRE_Creation_Date Rejected_CRE_ID Rejected Failed_Reason&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 13:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-merge-two-query-with-different-fields-in-one/m-p/579995#M202088</guid>
      <dc:creator>nikhilup</dc:creator>
      <dc:date>2022-01-05T13:04:54Z</dc:date>
    </item>
  </channel>
</rss>

