<?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: Escape literal $ at FORMAT of transforms.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Escape-literal-at-FORMAT-of-transforms-conf/m-p/672748#M230389</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;usually character \ has used for escape character. I haven't try if this works also in your case, but you could try it like "\$" in your transforms.conf and see if it works or not.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2023 15:17:07 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2023-12-27T15:17:07Z</dc:date>
    <item>
      <title>Escape literal $ at FORMAT of transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Escape-literal-at-FORMAT-of-transforms-conf/m-p/672746#M230388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have the following&amp;nbsp;transforms.conf:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[REPLACEMENT_COST]
CLEAN_KEYS = 0
FORMAT = $1"REPLACEMENT_COST2":"$2$s"$3
REGEX = (.*)"REPLACEMENT_COST":([^,]+)(.*)
#SOURCE_KEY = REPLACEMENT_COST
DEST_KEY = _raw&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I had to write s in the FORMAT field right after $, since otherwise, it does nothing. Is there any option to escape the dollar sign in this field?&lt;BR /&gt;&lt;BR /&gt;The relevant props.conf is:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[json_multiline]
DATETIME_CONFIG =
INDEXED_EXTRACTIONS = json
LINE_BREAKER = ([\r\n]+)
MAX_DAYS_AGO = 10000
NO_BINARY_CHECK = true
TIMESTAMP_FIELDS = LAST_UPDATE
TIME_FORMAT = %m/%e/%y %H:%M
category = Custom
pulldown_type = 1
disabled = false
KV_MODE = none
EVAL-DESCRIPTION = replace(DESCRIPTION, "([A-Z])", " \1")
EVAL-SPECIAL_FEATURES = split(replace(SPECIAL_FEATURES, "([A-Z])", " \1"), ",")
LOOKUP-LANGUAGE = LANGUAGE.csv LANGUAGE_ID
TRANSFORMS-REPLACEMENT = REPLACEMENT_COST&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 15:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Escape-literal-at-FORMAT-of-transforms-conf/m-p/672746#M230388</guid>
      <dc:creator>Assaf_Katz</dc:creator>
      <dc:date>2023-12-27T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Escape literal $ at FORMAT of transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Escape-literal-at-FORMAT-of-transforms-conf/m-p/672748#M230389</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;usually character \ has used for escape character. I haven't try if this works also in your case, but you could try it like "\$" in your transforms.conf and see if it works or not.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 15:17:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Escape-literal-at-FORMAT-of-transforms-conf/m-p/672748#M230389</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-12-27T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Escape literal $ at FORMAT of transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Escape-literal-at-FORMAT-of-transforms-conf/m-p/672756#M230392</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you, but I tried and it doesn't work.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 15:48:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Escape-literal-at-FORMAT-of-transforms-conf/m-p/672756#M230392</guid>
      <dc:creator>Assaf_Katz</dc:creator>
      <dc:date>2023-12-27T15:48:23Z</dc:date>
    </item>
  </channel>
</rss>

