<?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: add multiple _meta from one field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-meta-from-one-field/m-p/630614#M108091</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228495"&gt;@janroc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you should create a stanza for each sourcetype in props.conf, but all stanzas can address the same stanzas in transforms.conf.&lt;/P&gt;&lt;P&gt;One hint: &lt;SPAN&gt;why don't you create an automatic field on your Search Heads?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's much easier to create and manage and does't give a great load in searches.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2023 09:18:17 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-02-13T09:18:17Z</dc:date>
    <item>
      <title>How to add multiple _meta from one field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-meta-from-one-field/m-p/630610#M108088</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I want to have on a HF (8.1.4) multiple _meta of &lt;STRONG&gt;one&lt;/STRONG&gt; field values in one stanza.&lt;BR /&gt;Any sugestion how?&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;accountName = a _meta -&amp;gt; _meta = c-team1&lt;BR /&gt;accountName = b _meta -&amp;gt; _meta = c-team2&lt;BR /&gt;accountName = c _meta -&amp;gt; _meta = c-team3&lt;/P&gt;
&lt;P&gt;Regards Jan&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 17:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-meta-from-one-field/m-p/630610#M108088</guid>
      <dc:creator>janroc</dc:creator>
      <dc:date>2023-02-13T17:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: add multiple _meta from one field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-meta-from-one-field/m-p/630611#M108089</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228495"&gt;@janroc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as described at &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/Data/Configureindex-timefieldextraction," target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/Data/Configureindex-timefieldextraction,&lt;/A&gt; you have to find a regex to identify events to assign values, e.g. if in your events there are the following strings:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;accountName = a or&amp;nbsp;accountName = b accountName = c, you have to create something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in props.conf:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TRANSFORMS-meta_a = override_meta_a
TRANSFORMS-meta_b = override_meta_b
TRANSFORMS-meta_c = override_meta_c&lt;/LI-CODE&gt;&lt;P&gt;in transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[override_meta_a]
REGEX = accountname\s*\=\s*a
WRITE_META = true
DEST_KEY = _meta
DEFAULT_VALUE = c_team1
SOURCE_KEY = _meta&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;in addition, you have to add, on your indexers, in fields.conf&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;INDEXED=true&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 08:48:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-meta-from-one-field/m-p/630611#M108089</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-13T08:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: add multiple _meta from one field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-meta-from-one-field/m-p/630613#M108090</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for the answer and sorry for not give you all information.&lt;BR /&gt;&lt;BR /&gt;We have multiple sourcetypes, will your suggestion&amp;nbsp;work OR should I just one stanza per sourcetype in props.conf?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will the _meta field overwrite the accountname field?&lt;BR /&gt;I want to keep the data in the accountname field as it is and add extra _meta from the accountname.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards Jan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 09:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-meta-from-one-field/m-p/630613#M108090</guid>
      <dc:creator>janroc</dc:creator>
      <dc:date>2023-02-13T09:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: add multiple _meta from one field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-meta-from-one-field/m-p/630614#M108091</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228495"&gt;@janroc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you should create a stanza for each sourcetype in props.conf, but all stanzas can address the same stanzas in transforms.conf.&lt;/P&gt;&lt;P&gt;One hint: &lt;SPAN&gt;why don't you create an automatic field on your Search Heads?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's much easier to create and manage and does't give a great load in searches.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 09:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-meta-from-one-field/m-p/630614#M108091</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-13T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: add multiple _meta from one field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-meta-from-one-field/m-p/630619#M108092</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228495"&gt;@janroc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 10:11:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-meta-from-one-field/m-p/630619#M108092</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-13T10:11:22Z</dc:date>
    </item>
  </channel>
</rss>

