<?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 do you move fields from one event to another? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-move-fields-from-one-event-to-another/m-p/417046#M42860</link>
    <description>&lt;P&gt;I would like you to explain the situation more concretely&lt;/P&gt;

&lt;P&gt;As a general story…&lt;BR /&gt;
The way to combine the fields of another event into the event is below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(Efficient method)
sourcetype=sourcetype_a OR sourcetype=sourcetype_b  | stats latest(*) AS * BY your_key

(Easy way)
sourcetype=sourcetype_a | join type=inner your_key
[search sourcetype=sourcetype_b  | dedup your_key| table your_key,  fields_1, ields_2,fields_other]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 03 Dec 2018 05:06:09 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2018-12-03T05:06:09Z</dc:date>
    <item>
      <title>How do you move fields from one event to another?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-move-fields-from-one-event-to-another/m-p/417045#M42859</link>
      <description>&lt;P&gt;i have events that contain the following.&lt;/P&gt;

&lt;P&gt;host    sourcetype        value1     value2 &lt;BR /&gt;
100     log-c                    .60&lt;BR /&gt;
100     log-d                    .75&lt;BR /&gt;
100    log-retention-c                        1&lt;BR /&gt;
100    log-retention-d                        2&lt;BR /&gt;
100   cpuload                  .4&lt;/P&gt;

&lt;P&gt;i want to combine the events to the following:&lt;/P&gt;

&lt;P&gt;host    sourcetype   value1     value2 &lt;BR /&gt;
100     log-c               .60            1&lt;BR /&gt;
100     log-d              .75             2&lt;BR /&gt;
100     cpuload         .4&lt;/P&gt;

&lt;P&gt;The only source type that requires this are those beginning with log.  I need value1 or value2 in the same event to calculate a status based on the values.&lt;/P&gt;

&lt;P&gt;Note: Sorted by source type, there are no intervening source types between log% and log-retention%.&lt;/P&gt;

&lt;P&gt;Any assistance is appreciated.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Sun, 02 Dec 2018 18:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-move-fields-from-one-event-to-another/m-p/417045#M42859</guid>
      <dc:creator>pc1234</dc:creator>
      <dc:date>2018-12-02T18:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you move fields from one event to another?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-move-fields-from-one-event-to-another/m-p/417046#M42860</link>
      <description>&lt;P&gt;I would like you to explain the situation more concretely&lt;/P&gt;

&lt;P&gt;As a general story…&lt;BR /&gt;
The way to combine the fields of another event into the event is below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(Efficient method)
sourcetype=sourcetype_a OR sourcetype=sourcetype_b  | stats latest(*) AS * BY your_key

(Easy way)
sourcetype=sourcetype_a | join type=inner your_key
[search sourcetype=sourcetype_b  | dedup your_key| table your_key,  fields_1, ields_2,fields_other]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Dec 2018 05:06:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-move-fields-from-one-event-to-another/m-p/417046#M42860</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-12-03T05:06:09Z</dc:date>
    </item>
  </channel>
</rss>

