<?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: extracting mv fields in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/683738#M9961</link>
    <description>&lt;P&gt;I also expected the LOG field to be extracted.&amp;nbsp; Were the changes to props/transforms installed on the first full Splunk instance the sees the data?&amp;nbsp; Was that instance restarted?&amp;nbsp; Is the screenshot showing new data (since the restart)?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 20:20:15 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-04-09T20:20:15Z</dc:date>
    <item>
      <title>extracting mv fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/683586#M9957</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I need some help creating a multivalue field.&lt;/P&gt;&lt;P&gt;Events can contain 1 or more fields with the following forms:&lt;/P&gt;&lt;P&gt;I try to explain with an example&lt;/P&gt;&lt;P&gt;Event1:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FICHERO_LOG1 = /any/log1/id/idca-admin/idca-admin.log&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FICHERO_LOG2 = /any/log1/id/log1/any1.log&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FICHERO_LOG3 = /any/log1/httpd/*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Event2:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FICHERO_LOG1 = /any/log2/id/id.log&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FICHERO_LOG2 = /any/log2/logging.log&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FICHERO_LOG3 = /any/log2/tree/httpd/ds/log2/*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FICHERO_LOG4 = /any/log2/id/id-batch/id-batch2.log&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eventN&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FICHERO_LOG1 = /any/logN/data1/activemq.log&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FICHERO_LOG2 = /any/logN/id/hss2/*.system.log&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;………&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FICHERO_LOGN = /any/path1/id/…./*…..log&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result I expect is:&lt;/P&gt;&lt;P&gt;For Event1&lt;/P&gt;&lt;TABLE width="537px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="40px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.188px"&gt;&lt;P&gt;key&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282.013px"&gt;&lt;P&gt;values&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.188px"&gt;&lt;P&gt;LOG=&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282.013px"&gt;&lt;P&gt;/any/log1/id/idca-admin/idca-admin.log&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.188px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282.013px"&gt;/any/log1/id/log1/any1.log&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="214.188px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282.013px"&gt;/any/log1/httpd/*&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for Event2:&lt;/P&gt;&lt;TABLE width="629px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="40px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="305.737px"&gt;&lt;P&gt;key&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282.462px"&gt;&lt;P&gt;values&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="305.737px"&gt;&lt;P&gt;LOG=&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282.462px"&gt;&lt;P&gt;/any/log2/id/id.log&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="305.737px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282.462px"&gt;/any/log2/logging.log&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="305.737px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="282.462px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/any/log2/tree/httpd/ds/log2/*&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="305.737px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282.462px"&gt;/any/log2/id/idca-batch/idca-batch2.log&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For event N&lt;/P&gt;&lt;TABLE width="562px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="40px" height="39px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="239.2px" height="39px"&gt;&lt;P&gt;key&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282px" height="39px"&gt;&lt;P&gt;values&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px" height="39px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="239.2px" height="39px"&gt;&lt;P&gt;LOG=&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282px" height="39px"&gt;&lt;P&gt;/any/logN/data1/activemq.log&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px" height="39px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="239.2px" height="39px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282px" height="39px"&gt;/any/logN/id/hss2/*.system.log&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px" height="39px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="239.2px" height="39px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="282px" height="39px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;…….&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="40px" height="39px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="239.2px" height="39px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="282px" height="39px"&gt;/any/path1/id/…./*…..log&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;transform.conf:

[my-log]

REGEX=^.*FICHERO_LOG.*\=\s*( ?&amp;lt;log&amp;gt;.*?)\s*\n

MV-AD=true



props.conf

[extractingFields]

TRANSFORM = other_transforms_stanza, my-log&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it's not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas or help? What steps should I follow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JAR&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 13:12:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/683586#M9957</guid>
      <dc:creator>Be_JAR</dc:creator>
      <dc:date>2024-04-08T13:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: extracting mv fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/683615#M9958</link>
      <description>&lt;P&gt;Please explain what is meant by "it's not working".&amp;nbsp; That phrase does not provide any actionable information.&amp;nbsp; What are the current results and how do they differ from what you expect?&lt;/P&gt;&lt;P&gt;Does the "other_transforms_stanza" do anything to the data that might affect the "my-log" stanza?&lt;/P&gt;&lt;P&gt;Have you used regex101.com to test the REGEX?&lt;/P&gt;&lt;P&gt;The "^.*" construct at the beginning of the regex is meaningless.&amp;nbsp; Get rid of it.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 19:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/683615#M9958</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-04-08T19:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: extracting mv fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/683630#M9959</link>
      <description>&lt;P&gt;Assuming your regex well extracts the fields you want, could you try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# transform.conf:
[my-log]
REGEX=FICHERO_LOG.*\=\s*( ?&amp;lt;log&amp;gt;.*?)\s*\n
MV_ADD=true

# props.conf
[extractingFields]
TRANSFORMS-ArbitraryName1 = my-log
TRANSFORMS-ArbitraryName2 = other_transforms_stanza&lt;/LI-CODE&gt;&lt;P&gt;Note that the MV ADD field is MV_ADD, not MV-AD&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 18:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/683630#M9959</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-04-08T18:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: extracting mv fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/683679#M9960</link>
      <description>&lt;P&gt;this is the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Be_JAR_0-1712660752087.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30316iE36B2276AA41B722/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Be_JAR_0-1712660752087.png" alt="Be_JAR_0-1712660752087.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect a LOG field to be created for each event with the different values of its log1, log2, or logn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regular expression works (tested on 101),&amp;nbsp;and &lt;SPAN&gt;other_transforms_stanza&lt;/SPAN&gt; does not apply to this field.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 11:08:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/683679#M9960</guid>
      <dc:creator>Be_JAR</dc:creator>
      <dc:date>2024-04-09T11:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: extracting mv fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/683738#M9961</link>
      <description>&lt;P&gt;I also expected the LOG field to be extracted.&amp;nbsp; Were the changes to props/transforms installed on the first full Splunk instance the sees the data?&amp;nbsp; Was that instance restarted?&amp;nbsp; Is the screenshot showing new data (since the restart)?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 20:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/683738#M9961</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-04-09T20:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: extracting mv fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/684015#M9976</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally got it this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;transform.conf:
[my-log]
Format = $1::$2
regex = FICHERO_LOG(\d+)\s+==s+([^=\n]+)\n
MV-ADD = true&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;props.conf

REPORT-log = my-log&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you all for your help&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 09:12:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/extracting-mv-fields/m-p/684015#M9976</guid>
      <dc:creator>Be_JAR</dc:creator>
      <dc:date>2024-04-12T09:12:07Z</dc:date>
    </item>
  </channel>
</rss>

