<?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 transform a field into a new field using the old field as part of a string in the new field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484070#M82934</link>
    <description>&lt;P&gt;Hi again @user93!&lt;/P&gt;

&lt;P&gt;you can concatenate field values and strings together using an eval statement. Then you can add that field to the lookup by piping the results to an outputlookup command. Try something along the lines of&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup yourlookup
| eval url="https://www.domain.com/go/".id
| table id, title, url
| outputlookup yourlookup
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Jan 2020 19:45:46 GMT</pubDate>
    <dc:creator>acfecondo75</dc:creator>
    <dc:date>2020-01-16T19:45:46Z</dc:date>
    <item>
      <title>How to transform a field into a new field using the old field as part of a string in the new field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484069#M82933</link>
      <description>&lt;P&gt;I have a list of IDs in a report using a lookup. I want to deliver the report using the IDs to create a URL.&lt;/P&gt;

&lt;P&gt;id=abcd1234&lt;/P&gt;

&lt;P&gt;Transform field and write new filed to the lookup table&lt;/P&gt;

&lt;P&gt;url=&lt;A href="https://www.domain.com/go/"&gt;https://www.domain.com/go/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;|inputlookup basetable&lt;BR /&gt;
|search value=WhatIsBeingReported&lt;BR /&gt;
|table id,title,url&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 18:22:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484069#M82933</guid>
      <dc:creator>user93</dc:creator>
      <dc:date>2020-01-16T18:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a field into a new field using the old field as part of a string in the new field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484070#M82934</link>
      <description>&lt;P&gt;Hi again @user93!&lt;/P&gt;

&lt;P&gt;you can concatenate field values and strings together using an eval statement. Then you can add that field to the lookup by piping the results to an outputlookup command. Try something along the lines of&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup yourlookup
| eval url="https://www.domain.com/go/".id
| table id, title, url
| outputlookup yourlookup
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jan 2020 19:45:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484070#M82934</guid>
      <dc:creator>acfecondo75</dc:creator>
      <dc:date>2020-01-16T19:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a field into a new field using the old field as part of a string in the new field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484071#M82935</link>
      <description>&lt;P&gt;Hey again &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207220"&gt;@acfecondo75&lt;/a&gt; !&lt;/P&gt;

&lt;P&gt;So, that didn't quite work for me because my field has a space in it. I want to use the value of the id field where the filed name is "page id" &lt;/P&gt;

&lt;P&gt;I have&lt;/P&gt;

&lt;P&gt;|inputlookup table.csv&lt;BR /&gt;
|search field=value&lt;/P&gt;

&lt;P&gt;|eval created_epoch=strptime(Created,"%m/%d/%Y %H:%M")&lt;BR /&gt;
|eval time_diff=now()-created_epoch&lt;/P&gt;

&lt;P&gt;|eval url="&lt;A href="https://www.domain.com/go/%22.%22Page" target="_blank"&gt;https://www.domain.com/go/"."Page&lt;/A&gt; Id"&lt;/P&gt;

&lt;P&gt;|table "Page Id",title,url,created_epoch,time_diff&lt;/P&gt;

&lt;P&gt;|search time_diff&amp;lt;=2592000&lt;/P&gt;

&lt;P&gt;My results show &lt;A href="https://www.domain.com/go/Page" target="_blank"&gt;https://www.domain.com/go/Page&lt;/A&gt; Id. I want the value of the page id, so like &lt;A href="https://www.domain.com/go/abcd1234" target="_blank"&gt;https://www.domain.com/go/abcd1234&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:40:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484071#M82935</guid>
      <dc:creator>user93</dc:creator>
      <dc:date>2020-09-30T03:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a field into a new field using the old field as part of a string in the new field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484072#M82936</link>
      <description>&lt;P&gt;if you need to reference a field with a space in it inside an eval statement, wrap the field name in single quotes to indicate that it's a field. &lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 20:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484072#M82936</guid>
      <dc:creator>acfecondo75</dc:creator>
      <dc:date>2020-01-16T20:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a field into a new field using the old field as part of a string in the new field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484073#M82937</link>
      <description>&lt;P&gt;you could also wrap it in $s. 'Page Id' or $Page Id$ will work. &lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 20:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484073#M82937</guid>
      <dc:creator>acfecondo75</dc:creator>
      <dc:date>2020-01-16T20:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a field into a new field using the old field as part of a string in the new field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484074#M82938</link>
      <description>&lt;P&gt;Brilliant! I chose the money sign &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 20:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transform-a-field-into-a-new-field-using-the-old-field-as/m-p/484074#M82938</guid>
      <dc:creator>user93</dc:creator>
      <dc:date>2020-01-16T20:44:12Z</dc:date>
    </item>
  </channel>
</rss>

