<?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: How to link 2 events without loosing data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-link-two-events-without-loosing-data/m-p/587601#M204630</link>
    <description>&lt;P&gt;If they have a common value, e.g. transaction id, you can use stats by&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats values(fieldD) as fieldD values(amount) as amount by transactionId&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 04 Mar 2022 07:33:27 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-03-04T07:33:27Z</dc:date>
    <item>
      <title>How to link two events without loosing data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-link-two-events-without-loosing-data/m-p/587540#M204620</link>
      <description>&lt;P&gt;I am trying to link 2 events together due to information in the first event not showing in the second. the information is needed to filter the results. I have been trying to use transaction but in doing that I am loosing information needed to filter the end results-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;eventA OR (eventB (amount&amp;gt;25 AND amount!=250 AND amount!="NONE"))
|transaction blue
|lookup C fieldD OUTPUT eggs
|search eggs&amp;gt;21
|table fieldD amount eggs blue&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that is the basics of the search, the problem is that fieldD is only in eventA, amount only in eventB. After using transaction to link them, amount disappears and can't be used to filter.&lt;BR /&gt;&lt;BR /&gt;Is there any other way to link the 2 events without loosing data within the events?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 01:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-link-two-events-without-loosing-data/m-p/587540#M204620</guid>
      <dc:creator>keanderson</dc:creator>
      <dc:date>2022-03-08T01:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 events without loosing data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-link-two-events-without-loosing-data/m-p/587601#M204630</link>
      <description>&lt;P&gt;If they have a common value, e.g. transaction id, you can use stats by&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats values(fieldD) as fieldD values(amount) as amount by transactionId&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Mar 2022 07:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-link-two-events-without-loosing-data/m-p/587601#M204630</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-04T07:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to link 2 events without loosing data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-link-two-events-without-loosing-data/m-p/587885#M204737</link>
      <description>&lt;P&gt;I think that would normally work but in this case it switched it so I was getting amount but not fieldD. I ended up using a lookup for an alternative. so far it is working. Thank you though! That is good information to know for other situations.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 16:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-link-two-events-without-loosing-data/m-p/587885#M204737</guid>
      <dc:creator>keanderson</dc:creator>
      <dc:date>2022-03-07T16:11:12Z</dc:date>
    </item>
  </channel>
</rss>

