<?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 How to append a inputlookup table with a main table, in a desired order. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585126#M203831</link>
    <description>&lt;P&gt;I am looking for one requirement, can anyone please help us.&lt;BR /&gt;&lt;BR /&gt;i want to append a inputlookup table to my main table with the same column names and field names.&lt;BR /&gt;&lt;BR /&gt;Here is my main search results.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinod743374_0-1644916656646.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17979i677FEB548C86FC49/image-size/large?v=v2&amp;amp;px=999" role="button" title="vinod743374_0-1644916656646.png" alt="vinod743374_0-1644916656646.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my inputlookup results&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinod743374_1-1644916802771.png" style="width: 769px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17980i5A657683DAC00A68/image-dimensions/769x143?v=v2" width="769" height="143" role="button" title="vinod743374_1-1644916802771.png" alt="vinod743374_1-1644916802771.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Desired Output:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinod743374_2-1644917711387.png" style="width: 1140px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17981i0CC14670B36AAF13/image-dimensions/1140x275?v=v2" width="1140" height="275" role="button" title="vinod743374_2-1644917711387.png" alt="vinod743374_2-1644917711387.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 09:36:45 GMT</pubDate>
    <dc:creator>vinod743374</dc:creator>
    <dc:date>2022-02-15T09:36:45Z</dc:date>
    <item>
      <title>How to append a inputlookup table with a main table, in a desired order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585126#M203831</link>
      <description>&lt;P&gt;I am looking for one requirement, can anyone please help us.&lt;BR /&gt;&lt;BR /&gt;i want to append a inputlookup table to my main table with the same column names and field names.&lt;BR /&gt;&lt;BR /&gt;Here is my main search results.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinod743374_0-1644916656646.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17979i677FEB548C86FC49/image-size/large?v=v2&amp;amp;px=999" role="button" title="vinod743374_0-1644916656646.png" alt="vinod743374_0-1644916656646.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my inputlookup results&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinod743374_1-1644916802771.png" style="width: 769px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17980i5A657683DAC00A68/image-dimensions/769x143?v=v2" width="769" height="143" role="button" title="vinod743374_1-1644916802771.png" alt="vinod743374_1-1644916802771.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Desired Output:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinod743374_2-1644917711387.png" style="width: 1140px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17981i0CC14670B36AAF13/image-dimensions/1140x275?v=v2" width="1140" height="275" role="button" title="vinod743374_2-1644917711387.png" alt="vinod743374_2-1644917711387.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 09:36:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585126#M203831</guid>
      <dc:creator>vinod743374</dc:creator>
      <dc:date>2022-02-15T09:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to append a inputlookup table with a main table, in a desired order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585130#M203833</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234515"&gt;@vinod743374&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could use the append command, something like this:&lt;/P&gt;&lt;P&gt;I supposed that the enabled password is a field and not a count&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| fields Compliance "Enabled Password"
| append [ | inputlookup your_lookup.csv | fields Compliance "Enabled Password" ]
| sort Compliance
| table Compliance "Enabled Password"&lt;/LI-CODE&gt;&lt;P&gt;Ciao&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 09:41:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585130#M203833</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-15T09:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to append a inputlookup table with a main table, in a desired order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585134#M203834</link>
      <description>&lt;P&gt;yup I know the append will works,&lt;BR /&gt;But I need in a specific order like in the Desired output Image.&lt;BR /&gt;&lt;BR /&gt;Is there any possibility to append after the same value.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 09:49:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585134#M203834</guid>
      <dc:creator>vinod743374</dc:creator>
      <dc:date>2022-02-15T09:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to append a inputlookup table with a main table, in a desired order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585137#M203836</link>
      <description>&lt;P&gt;I have already achieved this in a manual way,&lt;BR /&gt;&lt;BR /&gt;I used a case function to give a number to every value(which order it should appear) of the Compliance field and sorted.&lt;BR /&gt;&lt;BR /&gt;But I need in such a way that , no need of Adding the query for every latest data.&lt;BR /&gt;&lt;BR /&gt;Any suggestion or Idea would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thankyou.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 10:03:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585137#M203836</guid>
      <dc:creator>vinod743374</dc:creator>
      <dc:date>2022-02-15T10:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to append a inputlookup table with a main table, in a desired order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585146#M203841</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234515"&gt;@vinod743374&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to extract an additional field from Compliant to use only for sorting, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| fields Compliance "Enabled Password"
| append [ | inputlookup your_lookup.csv | fields Compliance "Enabled Password" ]
| rex field=Compliance "(?&amp;lt;sort_date&amp;gt;\d\d\s\w\w\w)$"
| eval sort_date=strpdate(sort_date,"%d $b")
| sort sort_date
| table Compliance "Enabled Password"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 11:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585146#M203841</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-15T11:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to append a inputlookup table with a main table, in a desired order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585160#M203844</link>
      <description>&lt;P&gt;&lt;STRONG&gt;strpdate&lt;/STRONG&gt; is not working , i replaced with strptime, but it doesn't return any values in the sort_date field.&lt;BR /&gt;i sorted it without conversion,&lt;BR /&gt;its working but not exactly I want,&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 12:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585160#M203844</guid>
      <dc:creator>vinod743374</dc:creator>
      <dc:date>2022-02-15T12:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to append a inputlookup table with a main table, in a desired order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585162#M203845</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234515"&gt;@vinod743374&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry strptime!&lt;/P&gt;&lt;P&gt;it's strange, because it should transform the date in Compliance in an epochtime, maybe also the year is needed, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| fields Compliance "Enabled Password"
| append [ | inputlookup your_lookup.csv | fields Compliance "Enabled Password" ]
| rex field=Compliance "(?&amp;lt;sort_date&amp;gt;\d\d\s\w\w\w)$"
| eval sort_date=sort_date." ".strftime(now(),"%Y")
| eval sort_date=strptime(sort_date,"%d $b %Y")
| sort sort_date
| table Compliance "Enabled Password"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 12:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585162#M203845</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-15T12:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to append a inputlookup table with a main table, in a desired order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585167#M203849</link>
      <description>&lt;P&gt;Mistyped the $ instead of % in the time format.&lt;BR /&gt;Now its Working Fine&amp;nbsp; I replaced the $ with %,&lt;BR /&gt;&lt;BR /&gt;Thanks for the solution.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 13:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585167#M203849</guid>
      <dc:creator>vinod743374</dc:creator>
      <dc:date>2022-02-15T13:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to append a inputlookup table with a main table, in a desired order.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585169#M203850</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234515"&gt;@vinod743374&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry for the error, good for you.&lt;/P&gt;&lt;P&gt;ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 13:10:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-a-inputlookup-table-with-a-main-table-in-a-desired/m-p/585169#M203850</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-15T13:10:45Z</dc:date>
    </item>
  </channel>
</rss>

