<?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 Joining two sourcetypes and adding the value of a field based on matching IDs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123750#M33427</link>
    <description>&lt;P&gt;I have two source types&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;autosys_job_def_dimension&lt;/LI&gt;
&lt;LI&gt;autosys_job_desc_dimension&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The events in the sourcetype1 have a common field with the events in sourcetype2 which is JOB_DESC_ID&lt;/P&gt;

&lt;P&gt;The events in sourcetype2 contain a field called DESCRIPTION&lt;/P&gt;

&lt;P&gt;I want to add the description field to the events in sourcetype1 based on if the JOB_DESC_ID fields match.&lt;/P&gt;

&lt;P&gt;This is what I have so far but I do no think that I am on the right track. Please help! Thanks!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   index=ko_autosys sourcetype=autosys_job_def_dimension | join type=left max=0 JOB_DESC_ID [search index=ko_autosys sourcetype=autosys_job_desc_dimension |fields + DESCRIPTION ] |table JOB_NAME DESCRIPTION
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 06:41:43 GMT</pubDate>
    <dc:creator>zd00191</dc:creator>
    <dc:date>2020-09-29T06:41:43Z</dc:date>
    <item>
      <title>Joining two sourcetypes and adding the value of a field based on matching IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123750#M33427</link>
      <description>&lt;P&gt;I have two source types&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;autosys_job_def_dimension&lt;/LI&gt;
&lt;LI&gt;autosys_job_desc_dimension&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The events in the sourcetype1 have a common field with the events in sourcetype2 which is JOB_DESC_ID&lt;/P&gt;

&lt;P&gt;The events in sourcetype2 contain a field called DESCRIPTION&lt;/P&gt;

&lt;P&gt;I want to add the description field to the events in sourcetype1 based on if the JOB_DESC_ID fields match.&lt;/P&gt;

&lt;P&gt;This is what I have so far but I do no think that I am on the right track. Please help! Thanks!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   index=ko_autosys sourcetype=autosys_job_def_dimension | join type=left max=0 JOB_DESC_ID [search index=ko_autosys sourcetype=autosys_job_desc_dimension |fields + DESCRIPTION ] |table JOB_NAME DESCRIPTION
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:41:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123750#M33427</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2020-09-29T06:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two sourcetypes and adding the value of a field based on matching IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123751#M33428</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ko_autosys sourcetype=autosys_job_def_dimension OR sourcetype=autosys_job_desc_dimension | stats values(*) AS * BY JOB_DESC_ID | table JOB_NAME DESCRIPTION
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:47:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123751#M33428</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-15T15:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two sourcetypes and adding the value of a field based on matching IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123752#M33429</link>
      <description>&lt;P&gt;I want my results to look like this&lt;/P&gt;

&lt;H1&gt;Job_Name                                                                    DESCRIPTION&lt;/H1&gt;

&lt;P&gt;asghasgha                                                                   hkjfdjhdljfhaldjkghljkadg&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:54:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123752#M33429</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2015-07-15T15:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two sourcetypes and adding the value of a field based on matching IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123753#M33430</link>
      <description>&lt;P&gt;You really should be more clear about how the solution does not match your desire.  In this case, the only thing that I can guess is that you don't like the capitalization of the job name.  If so, just add this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rename JOB_NAME AS Job_Name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123753#M33430</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-15T15:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two sourcetypes and adding the value of a field based on matching IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123754#M33431</link>
      <description>&lt;P&gt;Sorry about that. I would like each row to contain one JOB_NAME and its DESCRIPTION. Unfortunately, the search above does not display the DESCRIPTION, and all of the job names end up in 1 row. Thank you again. &lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 16:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123754#M33431</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2015-07-15T16:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two sourcetypes and adding the value of a field based on matching IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123755#M33432</link>
      <description>&lt;P&gt;Both of your "dislikes" are a result of the joining field ( &lt;CODE&gt;JOB_DESC_ID&lt;/CODE&gt; ) not being present in this source:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ko_autosys sourcetype=autosys_job_desc_dimension
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Once you figure out what the real name of that field is, you can run this search and replace &lt;CODE&gt;mysteryField&lt;/CODE&gt; with the correct field name:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ko_autosys sourcetype=autosys_job_def_dimension OR sourcetype=autosys_job_desc_dimension | eval JOB_DESC_ID=coalesce(JOB_DESC_ID,mysteryField) | stats values(*) AS * BY JOB_DESC_ID | table JOB_NAME DESCRIPTION
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jul 2015 16:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123755#M33432</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-15T16:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two sourcetypes and adding the value of a field based on matching IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123756#M33433</link>
      <description>&lt;P&gt;Perfect. Thank you so much for answering my questions all the time!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 16:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123756#M33433</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2015-07-15T16:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two sourcetypes and adding the value of a field based on matching IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123757#M33434</link>
      <description>&lt;P&gt;Do you think you could at &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/274838/table-cell-highlighting-cannot-seem-to-get-it-to-w.html"&gt;https://answers.splunk.com/answers/274838/table-cell-highlighting-cannot-seem-to-get-it-to-w.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I edited the .js, .css, and xml based on the examples from the dashboard examples app but there are no highlights showing up in my table.&lt;/P&gt;

&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 16:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123757#M33434</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2015-07-15T16:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two sourcetypes and adding the value of a field based on matching IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123758#M33435</link>
      <description>&lt;P&gt;Sorry, I have not done this before so I cannot speak to it.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-sourcetypes-and-adding-the-value-of-a-field-based-on/m-p/123758#M33435</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-15T17:18:16Z</dc:date>
    </item>
  </channel>
</rss>

