<?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: append command is not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/append-command-is-not-working/m-p/490656#M136999</link>
    <description>&lt;P&gt;Why use the &lt;CODE&gt;append&lt;/CODE&gt; command? Just join with an &lt;CODE&gt;OR&lt;/CODE&gt;. Post a sample of your query&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2020 16:02:28 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2020-01-23T16:02:28Z</dc:date>
    <item>
      <title>append command is not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/append-command-is-not-working/m-p/490655#M136998</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Updated&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I have &lt;STRONG&gt;70,535&lt;/STRONG&gt; records in first query and &lt;STRONG&gt;201776&lt;/STRONG&gt; from second query.&lt;BR /&gt;
when i am append these two searches it is not working correctly.&lt;BR /&gt;
Some data i lost.&lt;/P&gt;

&lt;P&gt;We can i have limitation for &lt;EM&gt;append&lt;/EM&gt; &lt;CODE&gt;maxout=50000&lt;/CODE&gt; in &lt;CODE&gt;limit.conf.&lt;/CODE&gt;&lt;BR /&gt;
Sometimes it is working for morethan 1 lakh records sometimes not.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="abc" source="first"  
    | dedup MAC 
    | eval MAC_Address=trim(upper(MAC)) |rename locations as Location |eval type="ARP",Serial_Number="NA",HostName="NA", Domain="NA", Chassis_Type="NA" |table MAC_Address 
    |join type=left max=0 MAC_Address[search index="ghf" source="dataset2"  |dedup MAC_Address  |eval MAC_Address=trim(upper(MAC_Address)),type="dataset2"|table MAC_Address type]  |where isnull(type) |fillnull value="ARP" |table MAC_Address type

    |append maxout=0 [search index="third" source="dataset2" |table MAC_Address type|eval MAC_Address=trim(upper(MAC_Address)) ] |dedup type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above query i have used left join and filtered with where null .(Here i want &lt;STRONG&gt;where Not in&lt;/STRONG&gt; but it is also not working for me) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base query ... |where NOT  MAC_Address  in ([search index=abs |dedup MAC_Address |eval a=split(MAC_Address," ")|mvexpand a |eval r="\"".a."\"" 
|stats values(r) as a | mvcombine delim="," a |rex field=a mode=sed "s/ /,/g" |return $a
])
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can any one please help me in this.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;This is for splunk cloud&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 14:49:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/append-command-is-not-working/m-p/490655#M136998</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2020-01-23T14:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: append command is not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/append-command-is-not-working/m-p/490656#M136999</link>
      <description>&lt;P&gt;Why use the &lt;CODE&gt;append&lt;/CODE&gt; command? Just join with an &lt;CODE&gt;OR&lt;/CODE&gt;. Post a sample of your query&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 16:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/append-command-is-not-working/m-p/490656#M136999</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2020-01-23T16:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: append command is not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/append-command-is-not-working/m-p/490657#M137000</link>
      <description>&lt;P&gt;@harishalipaka it definitely will have subsearch limitations and limits.conf can be changed to accommodate as per your needs but as @skoelpin  has mentioned please let us know your current SPL/Use case so that we can suggest you any other alternative which is better suited for your needs and may not run into sub-search limitations. PS: You can also try out the sub-search related optional arguments to see if append works (not recommended unless we see your use case): &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Append#Optional_arguments"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Append#Optional_arguments&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 16:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/append-command-is-not-working/m-p/490657#M137000</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-01-23T16:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: append command is not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/append-command-is-not-working/m-p/490658#M137001</link>
      <description>&lt;P&gt;query and sample log please. nobody knows details.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 17:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/append-command-is-not-working/m-p/490658#M137001</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-23T17:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: append command is not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/append-command-is-not-working/m-p/490659#M137002</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;(index="abc" source="first") OR ((index="ghf" OR index="third") source="dataset2") 
| eval MAC_Address=trim(upper(coalesce(MAC,MAC_Address)) 
| rename locations as Location 
| eval type=case(index="abc","ARP",index="ghf","dataset2",index="third",type) ,Serial_Number="NA",HostName="NA", Domain="NA", Chassis_Type="NA" 
| stats value(*) as * by MAC_Address
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, @harishalipaka&lt;BR /&gt;
&lt;CODE&gt;append&lt;/CODE&gt; is unnecessary.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 14:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/append-command-is-not-working/m-p/490659#M137002</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-24T14:32:18Z</dc:date>
    </item>
  </channel>
</rss>

