<?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: Help comparing outputcsv to inputcsv in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-comparing-outputcsv-to-inputcsv/m-p/599217#M208603</link>
    <description>&lt;P&gt;You could use stats values(*) as * by key field and then look for mvcount()s greater than 1&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 06:28:14 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-05-25T06:28:14Z</dc:date>
    <item>
      <title>Help comparing outputcsv to inputcsv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-comparing-outputcsv-to-inputcsv/m-p/598634#M208449</link>
      <description>&lt;P&gt;Hi Team.&lt;BR /&gt;&lt;BR /&gt;I have a big ol search that tables a bunch of resource usage data. Now i smack and outputcsv on that badboy, and schedule it to run once a month.&lt;BR /&gt;&lt;BR /&gt;Before it runs next month i would like to run the search again , drag in the old search with inputcsv and then compare the two, and maybe only list the changes (And maybe how much it changes?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(index="redacted" OR index="redacted2") EventCode=1011 | rex field=Message "\W(?&amp;lt;ServerName&amp;gt;\S+)\s\w+\W(?&amp;lt;PowerState&amp;gt;\S+)\s\w+\W(?&amp;lt;CpuCount&amp;gt;\S+)\s\w+\W(?&amp;lt;CoresPerSocket&amp;gt;\S+)\s\w+\W(?&amp;lt;GuestHostName&amp;gt;\S+)(:)(?&amp;lt;GuestOS&amp;gt;.+)(MemoryMB)\W(?&amp;lt;MemoryMB&amp;gt;\S+)\s\w+\W(?&amp;lt;ResourcePool&amp;gt;.+)(Version)\W(?&amp;lt;Version&amp;gt;\w+)\s\w+\W(?&amp;lt;UsedSpaceGB&amp;gt;\S+)\s\w+\W(?&amp;lt;ProvisionedSpaceGB&amp;gt;\S+)\s\w+\W(?&amp;lt;VMHost&amp;gt;\S+)\s\w+\W(?&amp;lt;Folder&amp;gt;.+)" | eval UsedSpaceGB = round(UsedSpaceGB,2) | eval ProvisionedSpaceGB = round(ProvisionedSpaceGB,2) | search VMHost="***" | table ServerName PowerState CpuCount CoresPerSocket GuestHostName GuestOS MemoryMB ResourcePool Version UsedSpaceGB ProvisionedSpaceGB VMHost Folder | dedup ServerName | search ServerName="*" | search VMHost="*" PowerState="*" ResourcePool="redacted "| outputcsv redacted_filename.csv&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;New search: inputcsv redacted_filename.csv lists the old search just fine, except it sorted the tablenames alphabetically, but whatever.&lt;BR /&gt;&lt;BR /&gt;Is there an easy way to compare the two, or will i have to extract all fields and compare manually?&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-comparing-outputcsv-to-inputcsv/m-p/598634#M208449</guid>
      <dc:creator>michaelnorup</dc:creator>
      <dc:date>2022-05-20T15:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing outputcsv to inputcsv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-comparing-outputcsv-to-inputcsv/m-p/599212#M208601</link>
      <description>&lt;P&gt;Anybody with an idea for a quicker way to do it?&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 06:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-comparing-outputcsv-to-inputcsv/m-p/599212#M208601</guid>
      <dc:creator>michaelnorup</dc:creator>
      <dc:date>2022-05-25T06:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing outputcsv to inputcsv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-comparing-outputcsv-to-inputcsv/m-p/599217#M208603</link>
      <description>&lt;P&gt;You could use stats values(*) as * by key field and then look for mvcount()s greater than 1&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 06:28:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-comparing-outputcsv-to-inputcsv/m-p/599217#M208603</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-25T06:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing outputcsv to inputcsv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-comparing-outputcsv-to-inputcsv/m-p/599222#M208606</link>
      <description>&lt;P&gt;Hey ITWhisperer, thanks for replying.&lt;BR /&gt;&lt;BR /&gt;Think you could spell it out for me? &lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 06:37:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-comparing-outputcsv-to-inputcsv/m-p/599222#M208606</guid>
      <dc:creator>michaelnorup</dc:creator>
      <dc:date>2022-05-25T06:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help comparing outputcsv to inputcsv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-comparing-outputcsv-to-inputcsv/m-p/599225#M208608</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your search (without outputlookup)
| inputlookup redacted_filename.csv
| stats values(*) as * by ServerName
| foreach *
  [| eval different=if(mvcount(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;) &amp;gt; 1, "true", null())]
| where different="true" &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 May 2022 06:52:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-comparing-outputcsv-to-inputcsv/m-p/599225#M208608</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-25T06:52:54Z</dc:date>
    </item>
  </channel>
</rss>

