<?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: Create multiple eval fields with wilcards? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-multiple-eval-fields-with-wilcards/m-p/81063#M20489</link>
    <description>&lt;P&gt;Sorry, no. You'll just have to type it out. You can try using a macro to shorten your typing, but you're still going to have to specify the field base names.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2013 21:12:21 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2013-04-01T21:12:21Z</dc:date>
    <item>
      <title>Create multiple eval fields with wilcards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-multiple-eval-fields-with-wilcards/m-p/81062#M20488</link>
      <description>&lt;P&gt;I'm attempting to calculate the deltas between a field and it's historical value. I use a subquery w/ appendcols to return the historical data and it is nicely in the form:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Group, field1, field2, field1_historical, field2_historical
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can create the deltas with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval field1_delta = field1 - field1_historical
 | eval field2_delta = field2 - field2_historical
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works but I'd like to generalize it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval *_delta = * - *_historical 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I get the error: &lt;/P&gt;

&lt;P&gt;Error in 'eval' command: The expression is malformed. An unexpected character is reached at '* - *_historical'.&lt;/P&gt;

&lt;P&gt;Any tips?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 20:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-multiple-eval-fields-with-wilcards/m-p/81062#M20488</guid>
      <dc:creator>jweinstein</dc:creator>
      <dc:date>2013-04-01T20:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple eval fields with wilcards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-multiple-eval-fields-with-wilcards/m-p/81063#M20489</link>
      <description>&lt;P&gt;Sorry, no. You'll just have to type it out. You can try using a macro to shorten your typing, but you're still going to have to specify the field base names.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 21:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-multiple-eval-fields-with-wilcards/m-p/81063#M20489</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-04-01T21:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple eval fields with wilcards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-multiple-eval-fields-with-wilcards/m-p/81064#M20490</link>
      <description>&lt;P&gt;An alternative to typing them out, especially if the field names are dynamic, would be to write your own search command to do this task.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 22:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-multiple-eval-fields-with-wilcards/m-p/81064#M20490</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-04-01T22:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple eval fields with wilcards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-multiple-eval-fields-with-wilcards/m-p/81065#M20491</link>
      <description>&lt;P&gt;I need this function too, hopefully it will come with next release of splunk&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 13:51:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-multiple-eval-fields-with-wilcards/m-p/81065#M20491</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2013-05-21T13:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple eval fields with wilcards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-multiple-eval-fields-with-wilcards/m-p/81066#M20492</link>
      <description>&lt;P&gt;sbsbb, if this is something you need make sure your file an enhancement request about it.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 15:23:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-multiple-eval-fields-with-wilcards/m-p/81066#M20492</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2013-05-21T15:23:06Z</dc:date>
    </item>
  </channel>
</rss>

