<?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 normalize field values that have slightly different field values? Regex? Match? Replace? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555194#M157587</link>
    <description>&lt;P&gt;For example, how would I make the following just "RHEL 8":&amp;nbsp;&lt;/P&gt;&lt;P&gt;RHEL8&lt;BR /&gt;RHEL 8&lt;BR /&gt;rhel8&lt;BR /&gt;rhel 8&lt;BR /&gt;rhel 8.6&lt;BR /&gt;Linux Server rel 8&lt;BR /&gt;&lt;BR /&gt;For example, how would I make the following just "Windows 10":&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Windows 10 Enterprise&lt;BR /&gt;Windows 10&lt;BR /&gt;Windows 10 enterprise&lt;BR /&gt;Windows 10&lt;BR /&gt;windows 10&lt;BR /&gt;windows 10 20H2&lt;BR /&gt;Windows 10 V2004&lt;BR /&gt;windows 10 2004&lt;BR /&gt;&lt;BR /&gt;For example, how would I make the following just "Windows Server 2012":&lt;BR /&gt;&lt;BR /&gt;Windows 2012r2&lt;BR /&gt;Windows Server 2012 R2&lt;BR /&gt;Windows Server 2012&lt;BR /&gt;&lt;BR /&gt;Etc...&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 22:45:55 GMT</pubDate>
    <dc:creator>UMDTERPS</dc:creator>
    <dc:date>2021-06-09T22:45:55Z</dc:date>
    <item>
      <title>How normalize field values that have slightly different field values? Regex? Match? Replace?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555183#M157582</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":man_office_worker:"&gt;👨‍💼&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am a little stuck on how to normalize "Operating System" data I have.&amp;nbsp; Currently, we have a field called "Operating System" our data looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Operating System

Windows 10        Enterprise
Windows 10 
Windows 10 enterprise 
Windows 10 
windows 10 
windows 10 20H2
Windows 10 V2004
windows 10 2004
Windows Server 
windows server
RHEL8
RHEL 8
rhel8
rhel 8
rhel 8.6
Linux Server rel 8
Windows 2012r2
Windows Server 2012 R2
Windows Server 2012&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I did a stats count (because data isn't normalized) we have 170+ operating systems.&amp;nbsp; What is the most efficient way to normalize data without writing 170+&amp;nbsp; "replace" or "match" statements?&lt;BR /&gt;&lt;BR /&gt;For example, how would I make the following just "RHEL 8":&amp;nbsp;&lt;/P&gt;&lt;P&gt;RHEL8&lt;BR /&gt;RHEL 8&lt;BR /&gt;rhel8&lt;BR /&gt;rhel 8&lt;BR /&gt;rhel 8.6&lt;BR /&gt;Linux Server rel 8&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 22:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555183#M157582</guid>
      <dc:creator>UMDTERPS</dc:creator>
      <dc:date>2021-06-09T22:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: How normalize field values that have slightly different field values? Regex? Match? Replace?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555188#M157584</link>
      <description>&lt;P&gt;What do you mean by "normalize"? Do you want all the Windows * operating systems to be simply Windows, and all the rest to be *nix for example?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 22:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555188#M157584</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-09T22:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How normalize field values that have slightly different field values? Regex? Match? Replace?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555194#M157587</link>
      <description>&lt;P&gt;For example, how would I make the following just "RHEL 8":&amp;nbsp;&lt;/P&gt;&lt;P&gt;RHEL8&lt;BR /&gt;RHEL 8&lt;BR /&gt;rhel8&lt;BR /&gt;rhel 8&lt;BR /&gt;rhel 8.6&lt;BR /&gt;Linux Server rel 8&lt;BR /&gt;&lt;BR /&gt;For example, how would I make the following just "Windows 10":&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Windows 10 Enterprise&lt;BR /&gt;Windows 10&lt;BR /&gt;Windows 10 enterprise&lt;BR /&gt;Windows 10&lt;BR /&gt;windows 10&lt;BR /&gt;windows 10 20H2&lt;BR /&gt;Windows 10 V2004&lt;BR /&gt;windows 10 2004&lt;BR /&gt;&lt;BR /&gt;For example, how would I make the following just "Windows Server 2012":&lt;BR /&gt;&lt;BR /&gt;Windows 2012r2&lt;BR /&gt;Windows Server 2012 R2&lt;BR /&gt;Windows Server 2012&lt;BR /&gt;&lt;BR /&gt;Etc...&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 22:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555194#M157587</guid>
      <dc:creator>UMDTERPS</dc:creator>
      <dc:date>2021-06-09T22:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: How normalize field values that have slightly different field values? Regex? Match? Replace?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555198#M157589</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval os=case(match(os,"(?i)rhel\s*8[\d\.]*"),"RHEL 8",match(os,"Linux Server rel 8"),"RHEL 8",match(os,"(?i)\s*windows\s10.*"),"Windows 10",match(os,"Windows (|Server )2012.*"),"Windows Server 2012",1==1,os)&lt;/LI-CODE&gt;&lt;P&gt;and so on&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 22:54:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555198#M157589</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-09T22:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: How normalize field values that have slightly different field values? Regex? Match? Replace?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555321#M157636</link>
      <description>&lt;P&gt;Doesn't seem to be working. For example, the field we have for OS is called "Operating System" and there is one entry that is "RHEL 8."&amp;nbsp; The following SPL,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|eval "os"=case(match("os","RHEL 8"),"RHEL 8")
|fields ip "system" os&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The search runs, no errors, but the search returns&amp;nbsp; nothing for "os:"&lt;BR /&gt;&lt;BR /&gt;IP&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;system&amp;nbsp; &amp;nbsp; os&lt;BR /&gt;192.168.1.1&amp;nbsp; &amp;nbsp; &amp;nbsp; ABC&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;"os" is blank, any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 14:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555321#M157636</guid>
      <dc:creator>UMDTERPS</dc:creator>
      <dc:date>2021-06-10T14:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How normalize field values that have slightly different field values? Regex? Match? Replace?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555323#M157637</link>
      <description>&lt;P&gt;If your field name has spaces in you need to enclose it is single quotes not double quotes.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 14:57:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555323#M157637</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-10T14:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: How normalize field values that have slightly different field values? Regex? Match? Replace?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555367#M157644</link>
      <description>&lt;P&gt;Ahh Yes! Thanks!&amp;nbsp; It works now!&amp;nbsp; Karma Granted!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 18:51:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-normalize-field-values-that-have-slightly-different-field/m-p/555367#M157644</guid>
      <dc:creator>UMDTERPS</dc:creator>
      <dc:date>2021-06-10T18:51:59Z</dc:date>
    </item>
  </channel>
</rss>

