<?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: Appending tables in searches in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/573881#M8573</link>
    <description>&lt;LI-CODE lang="markup"&gt;search
| table A B C
| append
  [search
   | table A B C]&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 05 Nov 2021 23:30:04 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-11-05T23:30:04Z</dc:date>
    <item>
      <title>Appending tables in searches</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/573879#M8572</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Is it possible to append two searches?&lt;/P&gt;&lt;P&gt;I have a search that ends in:&lt;/P&gt;&lt;P&gt;| table A B C&lt;/P&gt;&lt;P&gt;And I want to append to the above some values under A, B, C that I calculate.&lt;/P&gt;&lt;P&gt;Can you tell me please the syntax for that?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 23:27:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/573879#M8572</guid>
      <dc:creator>SplnkUse</dc:creator>
      <dc:date>2021-11-05T23:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Appending tables in searches</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/573881#M8573</link>
      <description>&lt;LI-CODE lang="markup"&gt;search
| table A B C
| append
  [search
   | table A B C]&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Nov 2021 23:30:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/573881#M8573</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-05T23:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Appending tables in searches</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/576496#M8616</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; thanks but I cannot make it work, it seems it does not keep aliases within the brackets and run the whole thing as one, instead of each separately and then join, is there any solution?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 01:14:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/576496#M8616</guid>
      <dc:creator>SplnkUse</dc:creator>
      <dc:date>2021-11-28T01:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Appending tables in searches</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/576507#M8617</link>
      <description>&lt;P&gt;What is the actual search that you are using?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 07:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/576507#M8617</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-28T07:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Appending tables in searches</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/578184#M8640</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; thanks, I am trying to combine searches in the following format. I know it may be difficult to picture the below but I cannot post more exact data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the problem is that&amp;nbsp; the:&lt;/P&gt;&lt;P&gt;&amp;nbsp;eval a="aaa"&lt;/P&gt;&lt;P&gt;is contained in two different searches and is set to different values.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;index=a aa!="" | fields aa &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| stats count by aa&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval a="aa"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval Timestamp=strftime(now(),"%d/%m/%Y %H:%M:00")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| table a b c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| append [&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;search&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;index=aa or index=bbb&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| stats&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval a="aaa"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval Timestamp=strftime(now(),"%d/%m/%Y %H:%M:00")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| table a bb cc&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| append [&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;search&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;index=aa or index=bbb&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| stats&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval a="aaaa"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| eval Timestamp=strftime(now(),"%d/%m/%Y %H:%M:00")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| table a bbb ccc&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 11:23:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/578184#M8640</guid>
      <dc:creator>SplnkUse</dc:creator>
      <dc:date>2021-12-13T11:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Appending tables in searches</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/578191#M8641</link>
      <description>&lt;P&gt;This is the right sort of syntax - what is the issue you are facing with doing it this way?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 12:42:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/578191#M8641</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-13T12:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Appending tables in searches</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/578540#M8642</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;| append [...]&lt;/FONT&gt;&lt;/STRONG&gt; will append the inner search results to the outer search. For example: &lt;FONT face="courier new,courier"&gt;index=foo | stats count | append [index=bar | stats count]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;| appendpipe [...]&lt;/FONT&gt; &lt;/STRONG&gt;will prolongate the outer search with the inner search modifications, and append the results instead of replacing them. For example: &lt;FONT face="courier new,courier"&gt;... | appendpipe [ | stats count as extracount]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;| eventstats ...&lt;/STRONG&gt; &lt;/FONT&gt;will add extra columns to an existing table with a treatment like a stats, without any further transformation. For example &lt;FONT face="courier new,courier"&gt;| eventstats avg(bytes) by server&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;| streamstats ...&lt;/STRONG&gt; &lt;/FONT&gt;will add extra columns to an existing table, but each calculated result depend on the previous results. For example:&amp;nbsp; &lt;FONT face="courier new,courier"&gt;| streamstats count as rank&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;For your needs, append may not be what you're looking for. The 2 searches are independant.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 20:34:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/578540#M8642</guid>
      <dc:creator>ldongradi_SPL</dc:creator>
      <dc:date>2021-12-15T20:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Appending tables in searches</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/578542#M8643</link>
      <description>&lt;P&gt;The syntax looks ok, but each of your subsearches returns different set of fields. If you want to have three columns as output, you have to return the same set of fields from each of subsearches. Do a rename at the end of your subsearches so that the returned fields are named consistently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 20:40:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Appending-tables-in-searches/m-p/578542#M8643</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-12-15T20:40:37Z</dc:date>
    </item>
  </channel>
</rss>

