<?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: Renaming auto extracted fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294316#M55924</link>
    <description>&lt;P&gt;couple of options here regarding a data model. &lt;BR /&gt;
first, you can extract the fields first and have the data model root search or child search or constraint have the fields you extracted with spath and renamed mentioned.&lt;BR /&gt;
other option is: -&amp;gt; add field -&amp;gt; eval expression -&amp;gt; eval "A" = a{}.b&lt;BR /&gt;
i think it supposed to work&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2017 18:26:06 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2017-07-03T18:26:06Z</dc:date>
    <item>
      <title>Renaming auto extracted fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294313#M55921</link>
      <description>&lt;P&gt;After parsing my json fields the auto extracted fields have format like this  a{}.b and a{}.b{}.c and so on.&lt;BR /&gt;
When i try to add auto extracted field to data model I'm getting an exception, &lt;/P&gt;

&lt;P&gt;"Field Name can not contain whitespace, double quotes, single quotes, curly braces or asterisks. " And this exception makes sense as my auto extracted field name contains curly braces, so how can i remove curly braces. I tried to use the concept of field alias as mentioned in &lt;A href="https://answers.splunk.com/answers/307993/is-there-a-bug-in-splunk-6-with-adding-an-attribut.html"&gt;https://answers.splunk.com/answers/307993/is-there-a-bug-in-splunk-6-with-adding-an-attribut.html&lt;/A&gt;. But I'm not able to add field alias in Data Model, Is there an example how to add field alias in Data Model.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 17:37:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294313#M55921</guid>
      <dc:creator>SudarshanS</dc:creator>
      <dc:date>2017-07-03T17:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming auto extracted fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294314#M55922</link>
      <description>&lt;P&gt;use the rename command:&lt;BR /&gt;
... | rename a{}.b as A, a{}.b{}.c{} as B .....&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.0/SearchReference/Rename"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.0/SearchReference/Rename&lt;/A&gt;&lt;BR /&gt;
there are other options out there as well. eval command for example &lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 17:40:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294314#M55922</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-07-03T17:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming auto extracted fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294315#M55923</link>
      <description>&lt;P&gt;Hi Adonio,&lt;/P&gt;

&lt;P&gt;Thanks for your reply. using spath and rename can be done on search head, how can i use it in data model ?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 17:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294315#M55923</guid>
      <dc:creator>SudarshanS</dc:creator>
      <dc:date>2017-07-03T17:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming auto extracted fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294316#M55924</link>
      <description>&lt;P&gt;couple of options here regarding a data model. &lt;BR /&gt;
first, you can extract the fields first and have the data model root search or child search or constraint have the fields you extracted with spath and renamed mentioned.&lt;BR /&gt;
other option is: -&amp;gt; add field -&amp;gt; eval expression -&amp;gt; eval "A" = a{}.b&lt;BR /&gt;
i think it supposed to work&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 18:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294316#M55924</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-07-03T18:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming auto extracted fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294317#M55925</link>
      <description>&lt;P&gt;Thank you so much adonio. &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294317#M55925</guid>
      <dc:creator>SudarshanS</dc:creator>
      <dc:date>2017-07-04T09:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming auto extracted fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294318#M55926</link>
      <description>&lt;P&gt;@SudarshanS,&lt;BR /&gt;
if it worked for you and answers your question,&lt;BR /&gt;
please mark question as answered, and up-vote the comments you feel were helpful&lt;BR /&gt;
cheers&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Renaming-auto-extracted-fields/m-p/294318#M55926</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-07-04T12:12:28Z</dc:date>
    </item>
  </channel>
</rss>

