<?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 add field from different event for data model purpose in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-field-from-different-event-for-data-model-purpose/m-p/581404#M202548</link>
    <description>&lt;P&gt;Thanks, but as mentioned I could not use pipe char "|" as part of the search as it's limited by the eventtype definition.&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Admin/Eventtypesconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Admin/Eventtypesconf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using "transaction" does provide the field I need as it groups the related events, but I need the field from the second event to be there on the first event permanently so when we do search it would appear as part of the result - so I can't really use "transaction" in this case.&lt;/P&gt;&lt;P&gt;Ideally the two events should have been ingested as a single event so we won't have this problem, but that's not the case.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2022 23:06:09 GMT</pubDate>
    <dc:creator>armahalma</dc:creator>
    <dc:date>2022-01-17T23:06:09Z</dc:date>
    <item>
      <title>How to add field from different event for data model purpose</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-field-from-different-event-for-data-model-purpose/m-p/580743#M202311</link>
      <description>&lt;P&gt;Is there a way to add a field to an event from a different event assuming they have a common key using a simple search (without using pipe)? The reason being the resulting event will need to be tagged via event type (which doesn't allow complex search) so it can be included as part of a data model.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;Event 1 -&amp;nbsp;field A (common key): ABC, field B: Sunny&lt;/P&gt;&lt;P&gt;Event 2 - field A (common key): ABC, field C: Morning&lt;/P&gt;&lt;P&gt;Resulting Event 1: field A: ABC, field B: Sunny, &lt;STRONG&gt;field C: Morning&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The final event will then be tagged so it can be included in the data model.&lt;/P&gt;&lt;P&gt;Appreciate any advice/suggestion.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 09:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-field-from-different-event-for-data-model-purpose/m-p/580743#M202311</guid>
      <dc:creator>armahalma</dc:creator>
      <dc:date>2022-01-12T09:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to add field from different event for data model purpose</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-field-from-different-event-for-data-model-purpose/m-p/580755#M202314</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;have you already try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
| stats values(*) as * by field_A&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 10:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-field-from-different-event-for-data-model-purpose/m-p/580755#M202314</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-01-12T10:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to add field from different event for data model purpose</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-field-from-different-event-for-data-model-purpose/m-p/581404#M202548</link>
      <description>&lt;P&gt;Thanks, but as mentioned I could not use pipe char "|" as part of the search as it's limited by the eventtype definition.&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Admin/Eventtypesconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Admin/Eventtypesconf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using "transaction" does provide the field I need as it groups the related events, but I need the field from the second event to be there on the first event permanently so when we do search it would appear as part of the result - so I can't really use "transaction" in this case.&lt;/P&gt;&lt;P&gt;Ideally the two events should have been ingested as a single event so we won't have this problem, but that's not the case.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 23:06:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-field-from-different-event-for-data-model-purpose/m-p/581404#M202548</guid>
      <dc:creator>armahalma</dc:creator>
      <dc:date>2022-01-17T23:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add field from different event for data model purpose</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-field-from-different-event-for-data-model-purpose/m-p/581426#M202553</link>
      <description>&lt;P&gt;If I understood your needs right you need to combine fields from two different events to one event?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so you definitely needs some commands which can do that "merge" from 2 to 1. I cannot (quickly) figure out any other ways than use | as a part of this merge.&lt;/P&gt;&lt;P&gt;Can you open little bit more about your use case if there is some other way to do it than what you have thinking (create data model).&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 07:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-field-from-different-event-for-data-model-purpose/m-p/581426#M202553</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-01-18T07:39:19Z</dc:date>
    </item>
  </channel>
</rss>

