<?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: How to use a csv as a mapping for a table without the use of join in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-csv-as-a-mapping-for-a-table-without-the-use-of/m-p/585100#M203815</link>
    <description>&lt;P&gt;Sorry for the late reply, but the lookup command don't give me the desired results, I want the result divided to neat 1 line, instead it show like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17977i9AD44CBE18F9E829/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;it should be in one line for each events.&lt;/P&gt;&lt;P&gt;ALTERNATEACQUIRER is the "Acquirerbank" in my original question.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 07:46:59 GMT</pubDate>
    <dc:creator>phamxuantung</dc:creator>
    <dc:date>2022-02-15T07:46:59Z</dc:date>
    <item>
      <title>How to use a csv as a mapping for a table without the use of join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-csv-as-a-mapping-for-a-table-without-the-use-of/m-p/581041#M202431</link>
      <description>&lt;P&gt;Hi, I have a search that produce the following table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Organization|Amount|AcquirerBank
Or_A        |2000  |1234
Or_A        |4000  |2345
Or_B        |1200  |3456
            |4020  |4567
Or_C        |1456  |5678     &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then I have a csv file that provide the bank code with the bank name as a mapping csv as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AcquirerBank|BankName
1234        |BankA
2345        |BankB
4567        |BankC
5678        |BankD&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The target table should look something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Organization|Amount|AcquirerBank|BankName
Or_A        |2000  |1234        |BankA
Or_A        |4000  |2345        |BankB
Or_B        |1200  |3456        |
            |4020  |4567        |BankC
Or_C        |1456  |5678        |BankD&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I try to use join like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index
|table Organization, Amount, AcquirerBank
|join AcquirerBank
[inputlookup bank_mapping.csv
|table AcquirerBank, BankName]
|table Organization, Amount, AcquirerBank, BankName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I encounter 2 problems:&lt;/P&gt;&lt;P&gt;1. My index have around a million events, and [join] have a limited number of events it can join, so my result table was lack in result.&lt;/P&gt;&lt;P&gt;2. Also [join] don't show enough results if the mapping csv don't have the data, as the example above, if I use [join], OrB with the field Acquirer that don't exist in mapping csv will not show up.&lt;/P&gt;&lt;P&gt;Anyone have a alternative to [join] that can resolve above problems?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 04:40:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-csv-as-a-mapping-for-a-table-without-the-use-of/m-p/581041#M202431</guid>
      <dc:creator>phamxuantung</dc:creator>
      <dc:date>2022-01-14T04:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a csv as a mapping for a table without the use of join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-csv-as-a-mapping-for-a-table-without-the-use-of/m-p/581047#M202432</link>
      <description>&lt;P&gt;The lookup command does what you want&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index
|table Organization, Amount, AcquirerBank
|lookup bank_mapping.csv AcquirerBank
|table Organization, Amount, AcquirerBank, BankName&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/SearchReference/Lookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 06:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-csv-as-a-mapping-for-a-table-without-the-use-of/m-p/581047#M202432</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-14T06:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a csv as a mapping for a table without the use of join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-csv-as-a-mapping-for-a-table-without-the-use-of/m-p/585100#M203815</link>
      <description>&lt;P&gt;Sorry for the late reply, but the lookup command don't give me the desired results, I want the result divided to neat 1 line, instead it show like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17977i9AD44CBE18F9E829/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;it should be in one line for each events.&lt;/P&gt;&lt;P&gt;ALTERNATEACQUIRER is the "Acquirerbank" in my original question.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 07:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-csv-as-a-mapping-for-a-table-without-the-use-of/m-p/585100#M203815</guid>
      <dc:creator>phamxuantung</dc:creator>
      <dc:date>2022-02-15T07:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a csv as a mapping for a table without the use of join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-csv-as-a-mapping-for-a-table-without-the-use-of/m-p/585103#M203817</link>
      <description>&lt;P&gt;There is obviously more to this search than you are letting on, which is fair enough. Having said that, you can collapse the multi-value fields into unique values using the values aggregator&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(BANK_CODE) as BANK_CODE values(TCTQT) as TCTQT ... by ...&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Feb 2022 07:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-csv-as-a-mapping-for-a-table-without-the-use-of/m-p/585103#M203817</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-15T07:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a csv as a mapping for a table without the use of join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-csv-as-a-mapping-for-a-table-without-the-use-of/m-p/585127#M203832</link>
      <description>&lt;P&gt;I think the natural of my search is fairly simple.&lt;/P&gt;&lt;P&gt;I have an index that have around a million events, each event is a transaction information with needed information which is (_time, ALTERNATEACQUIRER, AMOUNT).&lt;/P&gt;&lt;P&gt;The final result need to be a table with each transaction separately on each row (for search and analyze purpose later), with the column: _time, ALTERNATEACQUIRER, AMOUNT, BANK_CODE, TCTQT.&lt;/P&gt;&lt;P&gt;I have a csv file name BANK_ACQ_BIN.csv that have ALTERNATEACQUIRER with corresponding BANK_CODE and TCTQT.&lt;/P&gt;&lt;P&gt;I try to use join before, but as aforementioned in my original post, [join] function, while it can produce a table satisfy my requirment, can only produce a limited number of events, and don't show the event that have ALTERNATEACQUIRER=null or don't have a matching ALTERNATEACQUIRER in the csv file.&lt;/P&gt;&lt;P&gt;I try to use Automate Lookup but it don't work either.&lt;/P&gt;&lt;P&gt;Sorry if I make you confuse reading this.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 09:38:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-csv-as-a-mapping-for-a-table-without-the-use-of/m-p/585127#M203832</guid>
      <dc:creator>phamxuantung</dc:creator>
      <dc:date>2022-02-15T09:38:53Z</dc:date>
    </item>
  </channel>
</rss>

