<?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: Compare 2 CSV files in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577139#M47290</link>
    <description>&lt;P&gt;That's perfect&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, I updated my search with your solution and it worked like a charm. The join command was working but made my search a bit slow.&lt;/P&gt;&lt;P&gt;I appreciate your help. thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 20:32:36 GMT</pubDate>
    <dc:creator>nomarja1</dc:creator>
    <dc:date>2021-12-02T20:32:36Z</dc:date>
    <item>
      <title>Compare 2 CSV files</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577100#M47282</link>
      <description>&lt;P&gt;I have two CSV files. One files has the name of the accounts and servers where the accounts are added.&lt;/P&gt;&lt;P&gt;The second CSV file I have a lookup breaking down the groups members.&lt;/P&gt;&lt;P&gt;The field name is in common with both CSV files.&lt;/P&gt;&lt;P&gt;e.g:&amp;nbsp; Accounts01.CSV&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Class&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Domain&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Hostname&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;User&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;robotic&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;ROB-SVR01&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Administrator&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Group&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;robotic&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;ROB-SVR01&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Advanced_users_IT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Group&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;robotic&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;ROB-SVR01&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Advanced_users_HR&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g: GroupMembers.CSV&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Name&lt;/TD&gt;&lt;TD width="50%"&gt;member&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Advanced_users_IT&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;user_IT_01&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;user_IT_02&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;user_IT_03&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Advanced_users_HR&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;user_HR_01&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;user_HR_02&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;user_IT_01&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to combine both files to match the names and adding a new column showing the members, so the result can be like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="120%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Class&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Domain&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Hostname&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Name&lt;/TD&gt;&lt;TD width="20%"&gt;Members&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;User&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;robotic&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;ROB-SVR01&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Administrator&lt;/TD&gt;&lt;TD width="20%"&gt;User Account&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Group&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;robotic&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;ROB-SVR01&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Advanced_users_IT&lt;/TD&gt;&lt;TD width="20%"&gt;user_IT_01&lt;BR /&gt;user_IT_02&lt;BR /&gt;user_IT_03&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Group&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;robotic&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;ROB-SVR01&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Advanced_users_HR&lt;/TD&gt;&lt;TD width="20%"&gt;user_HR_01&lt;BR /&gt;user_HR_02&lt;BR /&gt;user_IT_01&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 02 Dec 2021 16:29:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577100#M47282</guid>
      <dc:creator>nomarja1</dc:creator>
      <dc:date>2021-12-02T16:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 CSV files</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577107#M47284</link>
      <description>&lt;LI-CODE lang="markup"&gt;| inputlookup Accounts01.CSV
| append
  [| inputlookup GroupMembers.CSV]
| stats values(member) as Members by Class Domain Hostname Name
| fillnull value="User Account" Members&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Dec 2021 17:33:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577107#M47284</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-02T17:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 CSV files</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577127#M47286</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 for replying, but unfortunately, that didn't work, it is showing the member fields "User Account"&amp;nbsp; where it should show the member of the group&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 19:42:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577127#M47286</guid>
      <dc:creator>nomarja1</dc:creator>
      <dc:date>2021-12-02T19:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 CSV files</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577128#M47287</link>
      <description>&lt;P&gt;Your example had "User Account" in that field - what value do you want in the field and where does it come from?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 19:48:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577128#M47287</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-02T19:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 CSV files</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577130#M47288</link>
      <description>&lt;P class="lia-align-left"&gt;I have 2 CSV in the same format as I described.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;I want to fill the add the member field displaying the members from the CSV&amp;nbsp;&amp;nbsp;GroupMembers.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;I managed to get that done, using JOIN type=left max=0, which is bringing the result I want. I know is not the best but I am going to use that for now.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 19:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577130#M47288</guid>
      <dc:creator>nomarja1</dc:creator>
      <dc:date>2021-12-02T19:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 CSV files</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577134#M47289</link>
      <description>&lt;P&gt;Sorry, too many fields in the by clause - try it this way&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="Class	Domain	Hostname	Name
User	robotic	ROB-SVR01	Administrator
Group	robotic	ROB-SVR01	Advanced_users_IT
Group	robotic	ROB-SVR01	Advanced_users_HR"
| multikv forceheader=1
| table Class Domain Hostname Name
| append
    [| makeresults
    | eval _raw="Name	member
Advanced_users_IT	user_IT_01,user_IT_02,user_IT_03
Advanced_users_HR	user_HR_01,user_HR_02,user_IT_01"
    | multikv forceheader=1
    | eval member=split(member,",")
    | table Name member]



| stats values(*) as * values(member) as Members by Name
| fillnull value="User Account" Members&lt;/LI-CODE&gt;&lt;P&gt;Not sure if you need the fillnull or something else if the Name has no entry in the GroupMembers.csv&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 20:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577134#M47289</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-12-02T20:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 CSV files</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577139#M47290</link>
      <description>&lt;P&gt;That's perfect&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, I updated my search with your solution and it worked like a charm. The join command was working but made my search a bit slow.&lt;/P&gt;&lt;P&gt;I appreciate your help. thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 20:32:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Compare-2-CSV-files/m-p/577139#M47290</guid>
      <dc:creator>nomarja1</dc:creator>
      <dc:date>2021-12-02T20:32:36Z</dc:date>
    </item>
  </channel>
</rss>

