<?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: How to prevent Splunk from creating a new field and value in an event given that a field contains the symbol &amp;quot;e in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615223#M14059</link>
    <description>&lt;P&gt;Try changing the sourcetype reference from this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[test]
EXTRACT-mail_reviewcomment = mail_reviewcomment="(?&amp;lt;mail_reviewcomment&amp;gt;.+?)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[preproc]
EXTRACT-mail_reviewcomment = mail_reviewcomment="(?&amp;lt;mail_reviewcomment&amp;gt;.+?)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you still can't get it working, I suggest using the field extractor tool. You can paste the regex straight in there. Below is the result I get.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chaker_0-1664460833934.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21771i06E116E92486405A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chaker_0-1664460833934.png" alt="chaker_0-1664460833934.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/ExtractfieldsinteractivelywithIFX" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 14:15:22 GMT</pubDate>
    <dc:creator>chaker</dc:creator>
    <dc:date>2022-09-29T14:15:22Z</dc:date>
    <item>
      <title>How to prevent Splunk from creating a new field and value in an event given that a field contains the symbol "equal"?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615051#M14044</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have been able to enter the following data in splunk through key value with the following format:&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sourcetype="excel_page_10" mail_sender="jordi@jordilazo.com" mail_recipient="lazo@jordilazo.es" mail_date_ep="1635qqqqwe2160816.0" mail_nummails="1222asdasd.adasdqweqw" mail_level="0@qw....." mail_info="NO" mail_removal="NO" mail_area="Miami" mail_subject="RE: NMXWZFOG&amp;lt; &amp;gt;VSTI" mail_id="XXX-KKKK-NNNN-KNZI" mail_reviewcomment="Comentario:ÑC&amp;lt;AZR=@P""\a"&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;As can be seen in the image, splunk has been able to correctly classify all the fields and value. However it has created a new &lt;STRONG&gt;field&lt;/STRONG&gt; called &lt;STRONG&gt;AZR&lt;/STRONG&gt; with the &lt;STRONG&gt;value&lt;/STRONG&gt; &lt;STRONG&gt;@P&lt;/STRONG&gt;. This is because it has detected an &lt;STRONG&gt;=&lt;/STRONG&gt; inside the comment review value and created it.&lt;BR /&gt;&lt;BR /&gt;What do I have to modify in the &lt;STRONG&gt;props&lt;/STRONG&gt; and &lt;STRONG&gt;transform&lt;/STRONG&gt; so that it detects the entire &lt;STRONG&gt;reviewcomment&lt;/STRONG&gt; field as 1 single value and &lt;STRONG&gt;includes&lt;/STRONG&gt; the symbol &lt;STRONG&gt;=&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 19:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615051#M14044</guid>
      <dc:creator>jordilazo</dc:creator>
      <dc:date>2022-09-29T19:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk from creating a new field and value in an event given that a field contains the symbol "e</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615080#M14046</link>
      <description>&lt;P&gt;props.conf&lt;BR /&gt;[INSERT_SOURCETYPE_HERE]&lt;BR /&gt;EXTRACT-mail_reviewcomment = mail_reviewcomment="(?&amp;lt;mail_reviewcomment&amp;gt;.+?)"&lt;/P&gt;&lt;P&gt;No need to modify transforms.conf in this case.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 00:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615080#M14046</guid>
      <dc:creator>chaker</dc:creator>
      <dc:date>2022-09-29T00:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent splunk from creating a new field and value in an event given that a field contains the symbol "e</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615139#M14050</link>
      <description>&lt;P&gt;Hi Chaker,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My props looks like:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[preproc]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SHOULD_LINEMERGE&lt;/SPAN&gt;&lt;SPAN&gt; = false&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NO_BINARY_CHECK&lt;/SPAN&gt;&lt;SPAN&gt; = true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TIME_PREFIX&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;timestamp&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/SPAN&gt;&lt;SPAN&gt; = 10&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CHARSET&lt;/SPAN&gt;&lt;SPAN&gt; = UTF-8&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;KV_MODE&lt;/SPAN&gt;&lt;SPAN&gt; = auto&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TRANSFORMS-dynamic_sourcetype&lt;/SPAN&gt;&lt;SPAN&gt; = dynamic_sourcetype&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EXTRACT-test&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;mail_reviewcomment&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"(?&amp;lt;mail_reviewcomment&amp;gt;.+?)"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But is still not working. Any idea? should I introduce the events like CSV?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615139#M14050</guid>
      <dc:creator>jordilazo</dc:creator>
      <dc:date>2022-09-29T08:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Splunk from creating a new field and value in an event given that a field contains the symbol "e</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615146#M14052</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249463"&gt;@jordilazo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This props.conf contains index time and search time instructions (the extraction is search time)&lt;/P&gt;&lt;P&gt;You could put this props.conf file on your searchhead, or create a new one with just the extract entry provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 09:05:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615146#M14052</guid>
      <dc:creator>chaker</dc:creator>
      <dc:date>2022-09-29T09:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Splunk from creating a new field and value in an event given that a field contains the symbol "e</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615197#M14053</link>
      <description>&lt;P&gt;Hi Chaker,&lt;/P&gt;&lt;P&gt;Unfortunately I have tried everything but Splunk keeps automatically creating a new field for the mail_reviewcomment field.&lt;BR /&gt;Maybe the problem is in the input.conf?&lt;BR /&gt;I run the script automatically.&lt;/P&gt;&lt;P&gt;Here I leave my configuration:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;HF&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;inputs.conf

[script://script.py]
disabled = 0
index = jordi_emails
interval = 55 14 * * *
source = external
sourcetype = preproc&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;props.conf

[preproc]
SHOULD_LINEMERGE = false
NO_BINARY_CHECK = true
TIME_PREFIX = timestamp=
MAX_TIMESTAMP_LOOKAHEAD = 10
CHARSET = UTF-8
KV_MODE = auto
TRANSFORMS-dynamic_sourcetype = dynamic_sourcetype

[test]
EXTRACT-mail_reviewcomment = mail_reviewcomment="(?&amp;lt;mail_reviewcomment&amp;gt;.+?)"&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;transform.conf

[dynamic_sourcetype]
REGEX = sourcetype="(\w+)"
FORMAT = sourcetype::$1
DEST_KEY = MetaData:Sourcetype&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;&lt;STRONG&gt;SH:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Looks exactly the same like the props.conf in my HF (as you said).&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 13:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615197#M14053</guid>
      <dc:creator>jordilazo</dc:creator>
      <dc:date>2022-09-29T13:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Splunk from creating a new field and value in an event given that a field contains the symbol "e</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615223#M14059</link>
      <description>&lt;P&gt;Try changing the sourcetype reference from this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[test]
EXTRACT-mail_reviewcomment = mail_reviewcomment="(?&amp;lt;mail_reviewcomment&amp;gt;.+?)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[preproc]
EXTRACT-mail_reviewcomment = mail_reviewcomment="(?&amp;lt;mail_reviewcomment&amp;gt;.+?)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you still can't get it working, I suggest using the field extractor tool. You can paste the regex straight in there. Below is the result I get.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chaker_0-1664460833934.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21771i06E116E92486405A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chaker_0-1664460833934.png" alt="chaker_0-1664460833934.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/ExtractfieldsinteractivelywithIFX" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 14:15:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615223#M14059</guid>
      <dc:creator>chaker</dc:creator>
      <dc:date>2022-09-29T14:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Splunk from creating a new field and value in an event given that a field contains the symbol "e</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615238#M14061</link>
      <description>&lt;P&gt;Hi Chaker,&lt;BR /&gt;&lt;BR /&gt;I think it is working but the problem is that I have another event that contains&lt;STRONG&gt; double quotes"&lt;/STRONG&gt; inside the value.&lt;BR /&gt;&lt;BR /&gt;Here is an example:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;mail_reviewcomment=&lt;/SPAN&gt;"&lt;SPAN class=""&gt;Comentario:&lt;/SPAN&gt;&lt;SPAN class=""&gt;Ñ&lt;/SPAN&gt;&lt;SPAN class=""&gt;C&lt;/SPAN&gt;&amp;lt;2KL&lt;SPAN class=""&gt;AZR=@Q&lt;/SPAN&gt;"&amp;amp;"&lt;SPAN class=""&gt;\A&lt;/SPAN&gt;" &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;So splunk is getting confused again.&lt;BR /&gt;&lt;BR /&gt;How can I modify the REGEX so splunk will process the field?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 15:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615238#M14061</guid>
      <dc:creator>jordilazo</dc:creator>
      <dc:date>2022-09-29T15:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Splunk from creating a new field and value in an event given that a field contains the symbol "e</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615278#M14067</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249463"&gt;@jordilazo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As long as &lt;STRONG&gt;&lt;SPAN class=""&gt;mail_reviewcomment&lt;/SPAN&gt;&lt;/STRONG&gt; is the last field in all the events, the following regex will work.&lt;/P&gt;&lt;P&gt;EXTRACT-mail_reviewcomment = mail_reviewcomment="(?&amp;lt;mail_reviewcomment&amp;gt;.+?)$&lt;/P&gt;&lt;P&gt;If the schema changes, and this field is no longer the last field in the event, this regex will not work, and will require some changes.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 00:26:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615278#M14067</guid>
      <dc:creator>chaker</dc:creator>
      <dc:date>2022-09-30T00:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Splunk from creating a new field and value in an event given that a field contains the symbol "e</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615593#M14096</link>
      <description>&lt;P&gt;This solution works&amp;nbsp;but it wasn't exactly what I wanted.&lt;/P&gt;&lt;P&gt;In this post this person asked the same and its looks like there is no solution.&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-escape-equal-signs-in-key-value-data/m-p/226641#M66844" target="_blank"&gt;How to escape equal signs (=) in key value data? - Splunk Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 07:23:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-prevent-Splunk-from-creating-a-new-field-and-value-in-an/m-p/615593#M14096</guid>
      <dc:creator>jordilazo</dc:creator>
      <dc:date>2022-10-03T07:23:26Z</dc:date>
    </item>
  </channel>
</rss>

