<?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: Multi Value Fields Extraction using Props and Transform in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480811#M134723</link>
    <description>&lt;P&gt;I need it to be done automatically using configuration files and not on the search bar itself.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2020 06:05:52 GMT</pubDate>
    <dc:creator>shayhibah</dc:creator>
    <dc:date>2020-01-09T06:05:52Z</dc:date>
    <item>
      <title>Multi Value Fields Extraction using Props and Transform</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480806#M134718</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have log in the following format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;time=12345678|hostname=shayh|product=blade1&amp;lt;&amp;gt;blade2&amp;lt;&amp;gt;blade3|username:sha@gmail.com|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In order to extract these fields, I used both props.conf and transform.conf:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_format]
REPORT-my_format = my_format
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transform.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_format]
FORMAT = $1::$2
REGEX = ([a-zA-Z0-9_]+)=([^|]+)
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am able to get the following fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;time=12345678
hostname=shayh
product=blade1&amp;lt;&amp;gt;blade2&amp;lt;&amp;gt;blade3
username:sha@gmail.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I noticed that I have an issue &lt;STRONG&gt;only&lt;/STRONG&gt; with multi-value fields extraction.&lt;BR /&gt;
multi-value fields may contains many values separated by "&amp;lt;&amp;gt;".&lt;/P&gt;

&lt;P&gt;How can I change my settings to support current behavior with multi-value fields extraction?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;UPDATE:&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;
I succeeded to split it using fields.conf and TOKENIZER but on Splunk UI I still see it as:&lt;BR /&gt;
product=blade1&amp;lt;&amp;gt;blade2&amp;lt;&amp;gt;blade3&lt;/P&gt;

&lt;P&gt;Is it possible to solve it too? maybe by replacing &amp;lt;&amp;gt; with \n)?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 18:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480806#M134718</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2020-01-08T18:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Value Fields Extraction using Props and Transform</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480807#M134719</link>
      <description>&lt;P&gt;Please share some sample data, anonymized as necessary.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 18:36:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480807#M134719</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-08T18:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Value Fields Extraction using Props and Transform</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480808#M134720</link>
      <description>&lt;P&gt;If the format is &lt;CODE&gt;field1=value1|field2=value2|...&lt;/CODE&gt; you can try: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS
    [pipe_eq]
    DELIMS = "|", "="

PROPS
   [my_format]
   TRANSFORMS-delims = pipe_eq
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jan 2020 20:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480808#M134720</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2020-01-08T20:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Value Fields Extraction using Props and Transform</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480809#M134721</link>
      <description>&lt;P&gt;@richgalloway &lt;BR /&gt;
Hi,&lt;/P&gt;

&lt;P&gt;Here is an example:&lt;BR /&gt;
time=12345678|hostname=shayh|product=blade1&amp;lt;&amp;gt;blade2&amp;lt;&amp;gt;blade3|username:&lt;A href="mailto:sha@gmail.com"&gt;sha@gmail.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Right now the pairs are perfect but I would like that field 'product' (for example) will be multi-value&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 20:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480809#M134721</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2020-01-08T20:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Value Fields Extraction using Props and Transform</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480810#M134722</link>
      <description>&lt;P&gt;It looks like your current REGEX will work except for the 'username' field since it is not in K=V format.  I would let Splunk extract the 'product' field as-is and use the &lt;CODE&gt;split&lt;/CODE&gt; function to break it up at search time.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 00:59:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480810#M134722</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-09T00:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Value Fields Extraction using Props and Transform</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480811#M134723</link>
      <description>&lt;P&gt;I need it to be done automatically using configuration files and not on the search bar itself.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 06:05:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480811#M134723</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2020-01-09T06:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Value Fields Extraction using Props and Transform</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480812#M134724</link>
      <description>&lt;P&gt;its not working.&lt;BR /&gt;
The current parsing is OK, I just need to support multi-value fields as well as single values.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 06:06:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480812#M134724</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2020-01-09T06:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Value Fields Extraction using Props and Transform</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480813#M134725</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="time=12345678|hostname=shayh|product=blade1&amp;lt;&amp;gt;blade2&amp;lt;&amp;gt;blade3|username:sha@gmail.com|" 
| kv 
| eval product=split(product,"&amp;lt;&amp;gt;")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, @shayhibah&lt;/P&gt;

&lt;P&gt;please try &lt;CODE&gt;Fields » Calculated fields » Add new&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;eval expression is #4&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Knowledge/Definecalcfields"&gt;Define calc fields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 11:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Value-Fields-Extraction-using-Props-and-Transform/m-p/480813#M134725</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-09T11:39:38Z</dc:date>
    </item>
  </channel>
</rss>

