<?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: Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499286#M194973</link>
    <description>&lt;P&gt;@ashajambagi yes, i have tried and it works. But in my case static data is not really static, new entries will be added atleast montly. &lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 12:36:33 GMT</pubDate>
    <dc:creator>rajeshjlnt</dc:creator>
    <dc:date>2019-12-05T12:36:33Z</dc:date>
    <item>
      <title>Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499282#M194969</link>
      <description>&lt;P&gt;I am building a table query to list down tickets against applications. Where tickets are stored in sourcetype 'a' and application names are stored in sourcetype 'b' with a common ID field&lt;BR /&gt;
When time filter is all time, query works just fine. When time filter is changed to today or this week, i am not getting results. I think this is because there will be no events/new entries in sourcetype 'b' as it is a master table.&lt;/P&gt;

&lt;P&gt;I would like to know if using 'join' for this scenario is correct or should i use some other method.&lt;BR /&gt;
Note: Sourcetype 'a' will have daily events, sourcetype 'b' is static&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 11:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499282#M194969</guid>
      <dc:creator>rajeshjlnt</dc:creator>
      <dc:date>2019-11-29T11:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499283#M194970</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=your_index sourcetype=A [index=your_index sourcetype=B | table something_contains_A ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hi,  @rajeshjlnt&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Join&lt;/CODE&gt; is not mandatory.&lt;/P&gt;

&lt;P&gt;This query is slow, so if you provide a specific log, we can make a more efficient query.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 06:58:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499283#M194970</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-30T06:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499284#M194971</link>
      <description>&lt;P&gt;Thank you for your response &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt; . I am not able to attach sample data ( no karma points) so typing it here,&lt;/P&gt;

&lt;P&gt;Tickets(CreatedDaily):&lt;BR /&gt;
Number          Created On          catetory_path&lt;BR /&gt;
INC0000001  12/1/2019 0:00  application1&lt;BR /&gt;
INC0000002  12/1/2019 0:00  application2&lt;BR /&gt;
INC0000003  12/1/2019 0:00  application3&lt;BR /&gt;
INC0000004  12/1/2019 0:00  application4&lt;BR /&gt;
INC0000005  12/1/2019 0:00  application5&lt;BR /&gt;
INC0000006  12/1/2019 0:00  application6&lt;BR /&gt;
INC0000007  12/1/2019 0:00  application7&lt;BR /&gt;
INC0000008  12/1/2019 0:00  application8&lt;BR /&gt;
INC0000009  12/2/2019 0:00  application1&lt;BR /&gt;
INC0000010  12/2/2019 0:00  application2&lt;BR /&gt;
INC0000011  12/2/2019 0:00  application3&lt;BR /&gt;
INC0000012  12/2/2019 0:00  application4&lt;BR /&gt;
INC0000013  12/2/2019 0:00  application5&lt;BR /&gt;
INC0000014  12/2/2019 0:00  application6&lt;BR /&gt;
INC0000015  12/3/2019 0:00  application7&lt;BR /&gt;
INC0000016  12/3/2019 0:00  application8&lt;BR /&gt;
INC0000017  12/3/2019 0:00  application1&lt;BR /&gt;
INC0000018  12/3/2019 0:00  application2&lt;BR /&gt;
INC0000019  12/3/2019 0:00  application3&lt;BR /&gt;
INC0000020  12/3/2019 0:00  application4&lt;BR /&gt;
INC0000021  12/3/2019 0:00  application5&lt;BR /&gt;
INC0000022  12/3/2019 0:00  application6&lt;BR /&gt;
INC0000023  12/4/2019 0:00  application7&lt;BR /&gt;
INC0000024  12/4/2019 0:00  application8&lt;BR /&gt;
INC0000025  12/4/2019 0:00  application1&lt;BR /&gt;
INC0000026  12/4/2019 0:00  application2&lt;BR /&gt;
INC0000027  12/4/2019 0:00  application3&lt;BR /&gt;
INC0000028  12/4/2019 0:00  application4&lt;BR /&gt;
INC0000029  12/4/2019 0:00  application5&lt;BR /&gt;
INC0000030  12/4/2019 0:00  application6&lt;BR /&gt;
INC0000031  12/4/2019 0:00  application7&lt;/P&gt;

&lt;P&gt;MasterData(Static)&lt;BR /&gt;
catetory_path   Appication ID   Application Name&lt;BR /&gt;
application1    BS_0001 Splunk&lt;BR /&gt;
application2    BS_0002 Google&lt;BR /&gt;
application3    BS_0003 Facebook&lt;BR /&gt;
application4    BS_0004 Outlook&lt;BR /&gt;
application5    BS_0005 Skype&lt;BR /&gt;
application6    BS_0006 Word&lt;BR /&gt;
application7    BS_0007 Excel&lt;BR /&gt;
application8    BS_0008 Powerpoint&lt;/P&gt;

&lt;P&gt;ResultExpected&lt;BR /&gt;
Number  Created On  catetory_path   Appication ID   Application Name&lt;BR /&gt;
INC0000001  12/1/2019 0:00  application1    BS_0001 Splunk&lt;BR /&gt;
INC0000002  12/1/2019 0:00  application2    BS_0002 Google&lt;BR /&gt;
INC0000003  12/1/2019 0:00  application3    BS_0003 Facebook&lt;BR /&gt;
INC0000004  12/1/2019 0:00  application4    BS_0004 Outlook&lt;BR /&gt;
INC0000005  12/1/2019 0:00  application5    BS_0005 Skype&lt;BR /&gt;
INC0000006  12/1/2019 0:00  application6    BS_0006 Word&lt;BR /&gt;
INC0000007  12/1/2019 0:00  application7    BS_0007 Excel&lt;BR /&gt;
INC0000008  12/1/2019 0:00  application8    BS_0008 Powerpoint&lt;BR /&gt;
INC0000009  12/2/2019 0:00  application1    BS_0001 Splunk&lt;BR /&gt;
INC0000010  12/2/2019 0:00  application2    BS_0002 Google&lt;BR /&gt;
INC0000011  12/2/2019 0:00  application3    BS_0003 Facebook&lt;BR /&gt;
INC0000012  12/2/2019 0:00  application4    BS_0004 Outlook&lt;BR /&gt;
INC0000013  12/2/2019 0:00  application5    BS_0005 Skype&lt;BR /&gt;
INC0000014  12/2/2019 0:00  application6    BS_0006 Word&lt;BR /&gt;
INC0000015  12/3/2019 0:00  application7    BS_0007 Excel&lt;BR /&gt;
INC0000016  12/3/2019 0:00  application8    BS_0008 Powerpoint&lt;BR /&gt;
INC0000017  12/3/2019 0:00  application1    BS_0001 Splunk&lt;BR /&gt;
INC0000018  12/3/2019 0:00  application2    BS_0002 Google&lt;BR /&gt;
INC0000019  12/3/2019 0:00  application3    BS_0003 Facebook&lt;BR /&gt;
INC0000020  12/3/2019 0:00  application4    BS_0004 Outlook&lt;BR /&gt;
INC0000021  12/3/2019 0:00  application5    BS_0005 Skype&lt;BR /&gt;
INC0000022  12/3/2019 0:00  application6    BS_0006 Word&lt;BR /&gt;
INC0000023  12/4/2019 0:00  application7    BS_0007 Excel&lt;BR /&gt;
INC0000024  12/4/2019 0:00  application8    BS_0008 Powerpoint&lt;BR /&gt;
INC0000025  12/4/2019 0:00  application1    BS_0001 Splunk&lt;BR /&gt;
INC0000026  12/4/2019 0:00  application2    BS_0002 Google&lt;BR /&gt;
INC0000027  12/4/2019 0:00  application3    BS_0003 Facebook&lt;BR /&gt;
INC0000028  12/4/2019 0:00  application4    BS_0004 Outlook&lt;BR /&gt;
INC0000029  12/4/2019 0:00  application5    BS_0005 Skype&lt;BR /&gt;
INC0000030  12/4/2019 0:00  application6    BS_0006 Word&lt;BR /&gt;
INC0000031  12/4/2019 0:00  application7    BS_0007 Excel&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:15:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499284#M194971</guid>
      <dc:creator>rajeshjlnt</dc:creator>
      <dc:date>2020-09-30T03:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499285#M194972</link>
      <description>&lt;P&gt;@rajeshjlt Did you try using lookup with static data?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 12:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499285#M194972</guid>
      <dc:creator>ashajambagi</dc:creator>
      <dc:date>2019-12-05T12:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499286#M194973</link>
      <description>&lt;P&gt;@ashajambagi yes, i have tried and it works. But in my case static data is not really static, new entries will be added atleast montly. &lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 12:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499286#M194973</guid>
      <dc:creator>rajeshjlnt</dc:creator>
      <dc:date>2019-12-05T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499287#M194974</link>
      <description>&lt;P&gt;hi, @rajeshjlnt  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index source=Tickets
|inputlookup MasterData.csv 
|table Number "Created On" catetory_path "Appication ID" "Application Name"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Static source is easier with &lt;CODE&gt;inputlookup&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index source=Tickets OR source=static
| stats list(*) as * by catetory_path
| eval raw=mvzip(Number,mvzip('Created On',mvzip('Appication ID' ,'Application Name')))
| mvexpand raw
| eval _raw=split(raw,",")
| eval Number=mvindex(_raw,0), "Created On"=mvindex(_raw,1),  "Appication ID"=mvindex(_raw,2), "Application Name"=mvindex(_raw, 3)
| table Number "Created On" catetory_path "Appication ID" "Application Name"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Maybe, It works.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="Number,Created_On,category_path
INC0000001,12/1/2019 0:00,application1
INC0000002,12/1/2019 0:00,application2
INC0000003,12/1/2019 0:00,application3
INC0000004,12/1/2019 0:00,application4
INC0000005,12/1/2019 0:00,application5
INC0000006,12/1/2019 0:00,application6
INC0000007,12/1/2019 0:00,application7
INC0000008,12/1/2019 0:00,application8
INC0000009,12/2/2019 0:00,application1
INC0000010,12/2/2019 0:00,application2
INC0000011,12/2/2019 0:00,application3
INC0000012,12/2/2019 0:00,application4
INC0000013,12/2/2019 0:00,application5
INC0000014,12/2/2019 0:00,application6
INC0000015,12/3/2019 0:00,application7
INC0000016,12/3/2019 0:00,application8
INC0000017,12/3/2019 0:00,application1
INC0000018,12/3/2019 0:00,application2
INC0000019,12/3/2019 0:00,application3
INC0000020,12/3/2019 0:00,application4
INC0000021,12/3/2019 0:00,application5
INC0000022,12/3/2019 0:00,application6
INC0000023,12/4/2019 0:00,application7
INC0000024,12/4/2019 0:00,application8
INC0000025,12/4/2019 0:00,application1
INC0000026,12/4/2019 0:00,application2
INC0000027,12/4/2019 0:00,application3
INC0000028,12/4/2019 0:00,application4
INC0000029,12/4/2019 0:00,application5
INC0000030,12/4/2019 0:00,application6
INC0000031,12/4/2019 0:00,application7"
| multikv forceheader=1
| table Number,Created_On,category_path
`comment("this is sample data")`
| join category_path [| makeresults
    | eval _raw="category_path,Appication_ID,Application_Name
application1,BS_0001,Splunk
application2,BS_0002,Google
application3,BS_0003,Facebook
application4,BS_0004,Outlook
application5,BS_0005,Skype
application6,BS_0006,Word
application7,BS_0007,Excel
application8,BS_0008,Powerpoint"
    | multikv forceheader=1 
    | table category_path,Appication_ID,Application_Name]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Other case, You need &lt;CODE&gt;join&lt;/CODE&gt; to get the results you expected.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 14:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499287#M194974</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-05T14:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499288#M194975</link>
      <description>&lt;P&gt;@rajeshjlnt how are the new entries added? You can have an automatic lookup and use it ?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 05:43:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499288#M194975</guid>
      <dc:creator>ashajambagi</dc:creator>
      <dc:date>2019-12-06T05:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499289#M194976</link>
      <description>&lt;P&gt;@ashajambagi I took a dump and created a lookup table to solve my problem. I expect new entries to this table. I do not know how to update a lookup table with new entries. So i am took the route of creating an index. Is there a way to append data to a lookup table automatically?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 08:34:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499289#M194976</guid>
      <dc:creator>rajeshjlnt</dc:creator>
      <dc:date>2019-12-06T08:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499290#M194977</link>
      <description>&lt;P&gt;Has this question been solved?&lt;BR /&gt;
Please provide a solution.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 10:55:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499290#M194977</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-06T10:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499291#M194978</link>
      <description>&lt;P&gt;There is option of automatic lookup or you can create a scheduled report to populate a lookup, using outputlookup command.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 11:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499291#M194978</guid>
      <dc:creator>ashajambagi</dc:creator>
      <dc:date>2019-12-06T11:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Joining sourcetype a  with sourcetype b where sourcetype b is a reference table with no daily changes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499292#M194979</link>
      <description>&lt;P&gt;please close your question.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 13:01:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-sourcetype-a-with-sourcetype-b-where-sourcetype-b-is-a/m-p/499292#M194979</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-06T13:01:04Z</dc:date>
    </item>
  </channel>
</rss>

