<?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 Standardizing field values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Standardizing-field-values/m-p/294542#M88896</link>
    <description>&lt;P&gt;I have field values that are the same as each other but in different cases.&lt;/P&gt;

&lt;P&gt;How can I standardize them to prevent inconsistencies in my results?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2017 01:12:58 GMT</pubDate>
    <dc:creator>tanyongjin</dc:creator>
    <dc:date>2017-05-16T01:12:58Z</dc:date>
    <item>
      <title>Standardizing field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Standardizing-field-values/m-p/294542#M88896</link>
      <description>&lt;P&gt;I have field values that are the same as each other but in different cases.&lt;/P&gt;

&lt;P&gt;How can I standardize them to prevent inconsistencies in my results?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 01:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Standardizing-field-values/m-p/294542#M88896</guid>
      <dc:creator>tanyongjin</dc:creator>
      <dc:date>2017-05-16T01:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Standardizing field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Standardizing-field-values/m-p/294543#M88897</link>
      <description>&lt;P&gt;I'm going to assume that you have some fields that contain both "No" and "no" as potential values.&lt;/P&gt;

&lt;P&gt;1) Before running a stats (or similar aggregation command), you should take each such field and apply either the upper or lower command to the field, such as &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval myfield = lower(myfield)
| stats count by myfield
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) When using a &lt;CODE&gt;rex&lt;/CODE&gt; or &lt;CODE&gt;regex&lt;/CODE&gt; or &lt;CODE&gt;match&lt;/CODE&gt; command on the field, at the front of the regular expression, add the flag &lt;CODE&gt;"(?i)"&lt;/CODE&gt; to do case-insensitive matching.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| regex AnotherField="(?i)yes"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which is equivalent to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| regex AnotherField="(yes|yeS|yEs|yES|Yes|YeS|YEs|YES)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 May 2017 02:08:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Standardizing-field-values/m-p/294543#M88897</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-05-16T02:08:44Z</dc:date>
    </item>
  </channel>
</rss>

