<?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: Multiple Fields with Same Name in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Fields-with-Same-Name/m-p/209066#M41168</link>
    <description>&lt;P&gt;You would need to configure multi-value field extraction (not done by default) to capture all values of OU, using either of these methods&lt;/P&gt;

&lt;P&gt;Fields.conf&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/ConfigureSplunktoparsemulti-valuefields"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/ConfigureSplunktoparsemulti-valuefields&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Props/Transforms.conf&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles#Handling_events_with_multivalue_fields"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles#Handling_events_with_multivalue_fields&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2016 14:21:36 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-08-02T14:21:36Z</dc:date>
    <item>
      <title>Multiple Fields with Same Name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Fields-with-Same-Name/m-p/209064#M41166</link>
      <description>&lt;P&gt;I am importing AD data which can contain multiple Organizational Units (OU).  Splunk only creates a field for the first instance, therefore I cannot query on all OUs.&lt;/P&gt;

&lt;P&gt;For example, this is my sample input data&lt;BR /&gt;
sn                = D'Arrigo&lt;BR /&gt;
givenName         = Frank&lt;BR /&gt;
department        = Information Technology&lt;BR /&gt;
sAMAccountName    = fdarrigo&lt;BR /&gt;
EmailAddress      = &lt;A href="mailto:fdarrigo@nyaaa.com" target="_blank"&gt;fdarrigo@nyaaa.com&lt;/A&gt;&lt;BR /&gt;
Enabled           = True&lt;BR /&gt;
LastLogonDate     = 8/1/2016 9=49=40 PM&lt;BR /&gt;
DistinguishedName = D'Arrigo Frank&lt;BR /&gt;
OU=USB_Enabled&lt;BR /&gt;
OU=User_Accounts&lt;BR /&gt;
DC=nyaaa&lt;BR /&gt;
DC=com&lt;BR /&gt;
DC=com&lt;/P&gt;

&lt;P&gt;Notice, I have two OUs: USB_Enabled; User_Accounts&lt;/P&gt;

&lt;P&gt;I am looking for suggestions what allow me query using either/both OU as a filter.&lt;BR /&gt;
index=myindex sourcetype=mysourcetype OU=USB_Enabled AND OU=User_Accounts&lt;/P&gt;

&lt;P&gt;Am I better off combining all OU values as a single MV field? (i.e.  OU=USB_Enabled,User_Accounts)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:30:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-Fields-with-Same-Name/m-p/209064#M41166</guid>
      <dc:creator>fdarrigo</dc:creator>
      <dc:date>2020-09-29T10:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Fields with Same Name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Fields-with-Same-Name/m-p/209065#M41167</link>
      <description>&lt;P&gt;I would recommend having a multi-valued field for &lt;CODE&gt;OU&lt;/CODE&gt; since you can manipulate the field easier and won't have to explicitly call each field. &lt;/P&gt;

&lt;P&gt;So for example if you wanted the top values of &lt;CODE&gt;OU&lt;/CODE&gt; from 10-11am yesterday, then your search would look like this &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=whatever OU="*" | top OU&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Which would produce an output like this &lt;/P&gt;

&lt;P&gt;OU_Name   Count      Percent &lt;/P&gt;

&lt;P&gt;But if you had a single valued field then your search and output would look like this &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=whatever OU="*" OU1="*" | top OU&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;OU_Name   Count  Percent    OU1_Name  Count  Percent &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-Fields-with-Same-Name/m-p/209065#M41167</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2020-09-29T10:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Fields with Same Name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Fields-with-Same-Name/m-p/209066#M41168</link>
      <description>&lt;P&gt;You would need to configure multi-value field extraction (not done by default) to capture all values of OU, using either of these methods&lt;/P&gt;

&lt;P&gt;Fields.conf&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/ConfigureSplunktoparsemulti-valuefields"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/ConfigureSplunktoparsemulti-valuefields&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Props/Transforms.conf&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles#Handling_events_with_multivalue_fields"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles#Handling_events_with_multivalue_fields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 14:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-Fields-with-Same-Name/m-p/209066#M41168</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-02T14:21:36Z</dc:date>
    </item>
  </channel>
</rss>

