<?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: Correlate data from two sources in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Correlate-data-from-two-sources/m-p/166828#M33791</link>
    <description>&lt;P&gt;Try following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="*bsf0003.stdout" "error" | stats count by QuoteNumber | fields - count | join QuoteNumber [search source="/u3/logs/QTE_SVCS2_SYNCQTE_PROD/QTE_SVCS2_SYNCQTE/syncqtesvc.log"  "transactionstatus=e" MessageCode=""  QuoteNumber="" NOT MessageCode="301" | stats count by QuotaNumber | fields - count ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above will give list of QuotaNumber present in both the queries. Stats are used to get unique values for QuotaNumber from both the search (which is faster than using dedup).&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2013 21:26:01 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2013-12-04T21:26:01Z</dc:date>
    <item>
      <title>Correlate data from two sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correlate-data-from-two-sources/m-p/166826#M33789</link>
      <description>&lt;P&gt;We have two separate logs for errors from different programs.  I am currently running two separate searches:&lt;BR /&gt;
source="*bsf0003.stdout" "error"&lt;BR /&gt;
sample of data:&lt;BR /&gt;
[12/04/13 14:13:37:150] MessageReference=XXXXXXXXXXXXXXXX                     SystemName=CS DistributionChannel=CS QuoteNumber=XXXXXXXX CallingProgram=psfsave   Desc="Error Code: 0110, Error Desc: Quote is Locked Out"&lt;/P&gt;

&lt;P&gt;source="/u3/logs/QTE_SVCS2_SYNCQTE_PROD/QTE_SVCS2_SYNCQTE/syncqtesvc.log"  "transactionstatus=e" MessageCode="&lt;EM&gt;"  QuoteNumber="&lt;/EM&gt;" NOT MessageCode="301" &lt;BR /&gt;
sample data:&lt;BR /&gt;
2013-12-04 14:22:35,400 [WebSphere_EJB_Timer_Service_WorkManager.Alarm Pool : 0] INFO  CLASS=SyncQuoteService, MessageReference=EC00A6F3-E700-72E2-E044-0017A477, SystemName=DRC, Operation=SyncQuoteServiceBatch, QuoteNumber=XXXXXXXX, QuoteEffectiveDate=XXXXXXXXX, QuoteCreationDate=XXXXXXXX, BindIndicator=N, ProcessIndicator=E, TransactionStatus=E, MessageCode=E900, FunctionName=FULLPROCESS, ElapseTime=1306&lt;/P&gt;

&lt;P&gt;I need to identify Quote numbers that have errors on BOTH sources, how should I go about doing that?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correlate-data-from-two-sources/m-p/166826#M33789</guid>
      <dc:creator>mookiie2005</dc:creator>
      <dc:date>2020-09-28T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate data from two sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correlate-data-from-two-sources/m-p/166827#M33790</link>
      <description>&lt;P&gt;Assuming your correlationId is QuoteNumber you can do this:&lt;/P&gt;

&lt;P&gt;(source="*bsf0003.stdout" "error") OR (source="/u3/logs/QTE_SVCS2_SYNCQTE_PROD/QTE_SVCS2_SYNCQTE/syncqtesvc.log"  "transactionstatus=e" MessageCode=""  QuoteNumber="" NOT MessageCode="301") | transaction QuoteNumber&lt;/P&gt;

&lt;P&gt;This will group all events from both sources with the same QuoteNumber together into transactions. I should note that transactions are intense operations. Try reading up on transactions and look at ways of limiting the time they are open. Use parameters like maxpause, maxspan, and startswith/endswith.&lt;/P&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:25:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correlate-data-from-two-sources/m-p/166827#M33790</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2020-09-28T15:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate data from two sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correlate-data-from-two-sources/m-p/166828#M33791</link>
      <description>&lt;P&gt;Try following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="*bsf0003.stdout" "error" | stats count by QuoteNumber | fields - count | join QuoteNumber [search source="/u3/logs/QTE_SVCS2_SYNCQTE_PROD/QTE_SVCS2_SYNCQTE/syncqtesvc.log"  "transactionstatus=e" MessageCode=""  QuoteNumber="" NOT MessageCode="301" | stats count by QuotaNumber | fields - count ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above will give list of QuotaNumber present in both the queries. Stats are used to get unique values for QuotaNumber from both the search (which is faster than using dedup).&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2013 21:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correlate-data-from-two-sources/m-p/166828#M33791</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-12-04T21:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate data from two sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correlate-data-from-two-sources/m-p/166829#M33792</link>
      <description>&lt;P&gt;I missed the last line in your question. The answer @somesoni2 provided is much better suited to solve your problem.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2013 21:30:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correlate-data-from-two-sources/m-p/166829#M33792</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2013-12-04T21:30:48Z</dc:date>
    </item>
  </channel>
</rss>

