<?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: Wildcards in eval function, to eval unknown fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-eval-function-to-eval-unknown-fields/m-p/49165#M11770</link>
    <description>&lt;P&gt;I've no spaces, the table above is an example, thats the results I get from splunk :&lt;/P&gt;

&lt;P&gt;index=summary_kihub source="summary_cus5_vdv_dfi_msg_business"  earliest=-1h@h S_plattform=i_kihub | timechart span=1m c(S_FahrtID.FahrtBezeichner) by S_partner | rename * as *_avg, _time as _time | appendcols [search index=summary_kihub source="summary_cus5_vdv_dfi_msg_business"  earliest=-2h@h S_plattform=i_kihub | timechart span=1m c(S_FahrtID.FahrtBezeichner) by S_partner] &lt;/P&gt;

&lt;P&gt;So I think we are not speeking about the same thing , are we ?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:40:13 GMT</pubDate>
    <dc:creator>sbsbb</dc:creator>
    <dc:date>2020-09-28T14:40:13Z</dc:date>
    <item>
      <title>Wildcards in eval function, to eval unknown fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-eval-function-to-eval-unknown-fields/m-p/49163#M11768</link>
      <description>&lt;P&gt;I'm making a timechart, returning a unknown number of columns.&lt;BR /&gt;
So I don't know how there named. I make appendcol, to add avg information, so I have :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  field1 field1_avg field2 field2_avg ... fieldN fieldN_avg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;08:00     2    3           2      2              4       5 &lt;/P&gt;

&lt;P&gt;I would like to eval a fieldx_delta=field*-field*_avg&lt;/P&gt;

&lt;P&gt;How could I achieved this ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:40:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-eval-function-to-eval-unknown-fields/m-p/49163#M11768</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2020-09-28T14:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in eval function, to eval unknown fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-eval-function-to-eval-unknown-fields/m-p/49164#M11769</link>
      <description>&lt;P&gt;split it by consecutive spaces, get the total number then sum all of them divided by the total number. Note: Don't count the last field just count the spaces and add two to the total number. this will assume that time in the field1 is as of other fields so 1 in 3.&lt;/P&gt;

&lt;P&gt;If your first fields contains other then time then considered to be the sum. In that case you will have 2 sum one for field1 and one for all other fields the equation will be &lt;/P&gt;

&lt;P&gt;parity(sum+sum/2*(Total Number of Spaces + 2) +- 1) this will include 0 instead of all and the equation will not be thrown by null but by +1 or -1. This is not very fundamental it's just an equation where null could be the solution of your problem, don't be very optimistic if the solution is 1 or greater then it will be the sum. 1=sum , if your first field is 1 as other then you will not receive null as solution. In this case null doesn't exist my dear.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 08:09:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-eval-function-to-eval-unknown-fields/m-p/49164#M11769</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-28T08:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in eval function, to eval unknown fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-eval-function-to-eval-unknown-fields/m-p/49165#M11770</link>
      <description>&lt;P&gt;I've no spaces, the table above is an example, thats the results I get from splunk :&lt;/P&gt;

&lt;P&gt;index=summary_kihub source="summary_cus5_vdv_dfi_msg_business"  earliest=-1h@h S_plattform=i_kihub | timechart span=1m c(S_FahrtID.FahrtBezeichner) by S_partner | rename * as *_avg, _time as _time | appendcols [search index=summary_kihub source="summary_cus5_vdv_dfi_msg_business"  earliest=-2h@h S_plattform=i_kihub | timechart span=1m c(S_FahrtID.FahrtBezeichner) by S_partner] &lt;/P&gt;

&lt;P&gt;So I think we are not speeking about the same thing , are we ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:40:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Wildcards-in-eval-function-to-eval-unknown-fields/m-p/49165#M11770</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2020-09-28T14:40:13Z</dc:date>
    </item>
  </channel>
</rss>

