<?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: Replacing strings in lookup result via transform in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Replacing-strings-in-lookup-result-via-transform/m-p/427779#M74944</link>
    <description>&lt;P&gt;That string is static yes, but it comes from a lookup. &lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2019 10:55:08 GMT</pubDate>
    <dc:creator>afx</dc:creator>
    <dc:date>2019-06-18T10:55:08Z</dc:date>
    <item>
      <title>Replacing strings in lookup result via transform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Replacing-strings-in-lookup-result-via-transform/m-p/427777#M74942</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I am trying to make a parameterized log more readable.&lt;BR /&gt;
Assuming a log that has the entries &lt;BR /&gt;
20,hugo,10.1.1.1 &lt;BR /&gt;
which are the fields &lt;BR /&gt;
msgid,user,src&lt;/P&gt;

&lt;P&gt;I might have a log entry that has a msgid of 20 which then is resolved via a CSV lookup to a readable message which is available as a field:&lt;BR /&gt;
message="User &amp;amp;A has logged in from &amp;amp;B"&lt;/P&gt;

&lt;P&gt;I have that step working already, but I am a bit lost on how to proceed to the next one:&lt;/P&gt;

&lt;P&gt;In a second step I want that message to be filled in by the two fields that have been extracted from the log (Say A=hugo and B=10.1.1.1) so that the result is available as a field&lt;BR /&gt;
fullmessage="User hugo has logged in from 10.1.1.1"&lt;/P&gt;

&lt;P&gt;All of this in props.conf/transforms.conf so that fullmessage is available for reports later on.&lt;/P&gt;

&lt;P&gt;thx&lt;BR /&gt;
afx&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 08:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Replacing-strings-in-lookup-result-via-transform/m-p/427777#M74942</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-06-18T08:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing strings in lookup result via transform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Replacing-strings-in-lookup-result-via-transform/m-p/427778#M74943</link>
      <description>&lt;P&gt;Hi @afx is the string "User hugo has logged in from 10.1.1.1" except hugo and 10.1.1.1 static?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 10:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Replacing-strings-in-lookup-result-via-transform/m-p/427778#M74943</guid>
      <dc:creator>harshpatel</dc:creator>
      <dc:date>2019-06-18T10:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing strings in lookup result via transform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Replacing-strings-in-lookup-result-via-transform/m-p/427779#M74944</link>
      <description>&lt;P&gt;That string is static yes, but it comes from a lookup. &lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 10:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Replacing-strings-in-lookup-result-via-transform/m-p/427779#M74944</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-06-18T10:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing strings in lookup result via transform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Replacing-strings-in-lookup-result-via-transform/m-p/427780#M74945</link>
      <description>&lt;P&gt;Have you tried EVAL in props.conf?  For example: &lt;CODE&gt;EVAL-fieldname = field1 + field2&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 11:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Replacing-strings-in-lookup-result-via-transform/m-p/427780#M74945</guid>
      <dc:creator>harshpatel</dc:creator>
      <dc:date>2019-06-18T11:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing strings in lookup result via transform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Replacing-strings-in-lookup-result-via-transform/m-p/427781#M74946</link>
      <description>&lt;P&gt;After checking the docs, I unfortunately found that I cannot use EVAL on results from a LOOKUP.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 06:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Replacing-strings-in-lookup-result-via-transform/m-p/427781#M74946</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-06-19T06:43:02Z</dc:date>
    </item>
  </channel>
</rss>

