<?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 Can I search with case insensitive fields. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-I-search-with-case-insensitive-fields/m-p/480730#M134694</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;

&lt;P&gt;Is there a way to address all fields case insensitively.&lt;BR /&gt;
To illustrate my point I have this query,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*aws_config* resourceType="AWS::EC2::Volume" 
| eval tag_CostCenter=If(isnotnull('tags.Brand.CostCenter') OR isnotnull('tags.brand.costcenter') OR isnotnull('tags.brand.Costcenter' OR isnotnull('tags.brand.costCenter' OR isnotnull('tags.brand.COSTCENTER' OR isnotnull('tags.brand.costCENTER'), "Yes", "No")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My data can have fields CostCenter, costCenter, COSTCENTER and many other case variations (And there can be tens of variations). Currently I am handling them by separating each variation with an OR. Is there a way to collectively query on all such case variations of a a field name instead of using multiple OR clauses.&lt;BR /&gt;
I know we can use coalesce or field aliases but that still means that I need to specify all possible field names somewhere.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 08:42:26 GMT</pubDate>
    <dc:creator>iet_ashish</dc:creator>
    <dc:date>2020-04-20T08:42:26Z</dc:date>
    <item>
      <title>Can I search with case insensitive fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-search-with-case-insensitive-fields/m-p/480730#M134694</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;

&lt;P&gt;Is there a way to address all fields case insensitively.&lt;BR /&gt;
To illustrate my point I have this query,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*aws_config* resourceType="AWS::EC2::Volume" 
| eval tag_CostCenter=If(isnotnull('tags.Brand.CostCenter') OR isnotnull('tags.brand.costcenter') OR isnotnull('tags.brand.Costcenter' OR isnotnull('tags.brand.costCenter' OR isnotnull('tags.brand.COSTCENTER' OR isnotnull('tags.brand.costCENTER'), "Yes", "No")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My data can have fields CostCenter, costCenter, COSTCENTER and many other case variations (And there can be tens of variations). Currently I am handling them by separating each variation with an OR. Is there a way to collectively query on all such case variations of a a field name instead of using multiple OR clauses.&lt;BR /&gt;
I know we can use coalesce or field aliases but that still means that I need to specify all possible field names somewhere.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 08:42:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-search-with-case-insensitive-fields/m-p/480730#M134694</guid>
      <dc:creator>iet_ashish</dc:creator>
      <dc:date>2020-04-20T08:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can I search with case insensitive fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-search-with-case-insensitive-fields/m-p/480731#M134695</link>
      <description>&lt;P&gt;first, make &lt;CODE&gt;table&lt;/CODE&gt; and use &lt;CODE&gt;transpose&lt;/CODE&gt; and &lt;CODE&gt;lower&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=*aws_config* resourceType="AWS::EC2::Volume" 
| table tags*
| transpose 0 column_name=tags
| eval tags=lower(tags)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so, aggregate these by&lt;CODE&gt;stats&lt;/CODE&gt; ...&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 09:53:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-search-with-case-insensitive-fields/m-p/480731#M134695</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-20T09:53:33Z</dc:date>
    </item>
  </channel>
</rss>

