<?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: sideview utils doing strange stuff with fields in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55907#M3243</link>
    <description>&lt;P&gt;Are the results reliable when you run the search manually?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2013 13:28:02 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-03-08T13:28:02Z</dc:date>
    <item>
      <title>sideview utils doing strange stuff with fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55906#M3242</link>
      <description>&lt;P&gt;I am struggling with getting the relevant fields through sideview utils.&lt;/P&gt;

&lt;P&gt;I initially had a TextField with a button as child, and a search as a child to that. I then use the textfield as a filter in the base search, which has PostProcess sub-modules. I've now removed all post process modules.&lt;/P&gt;

&lt;P&gt;My search consists of a handful of a series of &lt;CODE&gt;evals&lt;/CODE&gt; followed by a &lt;CODE&gt;stats&lt;/CODE&gt; followed by more more &lt;CODE&gt;evals&lt;/CODE&gt;. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats latest(SomeField) as SomeField latest(OtherField) as OtherField | eval SomeField="$".round(SomeField) | eval OtherField=round(OtherField)."%" | table SomeField OtherField | rename SomeField AS "Some Field Header" OtherField AS "Other Field Header"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;relatively straight-forward, I would think. But when I run this search, I get random results. My evals aren't processed in some places. &lt;/P&gt;

&lt;P&gt;There's about 10 fields, and of those, some are rounded, some aren't, some have the formatting done, some don't.&lt;/P&gt;

&lt;P&gt;what is happening, why is sideview so unreliable in terms of results??&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55906#M3242</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2013-03-08T13:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: sideview utils doing strange stuff with fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55907#M3243</link>
      <description>&lt;P&gt;Are the results reliable when you run the search manually?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:28:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55907#M3243</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-08T13:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: sideview utils doing strange stuff with fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55908#M3244</link>
      <description>&lt;P&gt;Well yes and no. I added an HTML module with $search$ in it so I can debug the search. When I do this, the original search that I configured the view with is being modified. So in the Splunk manager, the search has 4 evals, looking at the value of $search$, there's only 1 - for some reason, the configured search is being reduced. A copy and past of the search yields the same results as the sideview, but it's not how the view is configured.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:40:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55908#M3244</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2013-03-08T13:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: sideview utils doing strange stuff with fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55909#M3245</link>
      <description>&lt;P&gt;Here's the (simplified) search configuration that I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval lastLogin=strftime(lastLogin,"%F %T") 
| eval regDate=strftime(RegTime,"%F %T")
| eval value="$".round(value) 
| table regDate numLogins lastLogin value numAccnts 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is what I see in the debug:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval lastLogin=strftime(lastLogin,"%F %T") | eval regDate=strftime(RegTime,"%F %T") | eval value="".round(IDAvg) | table regDate numLogins lastLogin value numAccnts 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So &lt;CODE&gt;value="$".round(value)&lt;/CODE&gt; becomes &lt;CODE&gt;value="".round(IDAvg)&lt;/CODE&gt;. Something to do with the &lt;CODE&gt;$&lt;/CODE&gt; perhaps? I use IDAvg, just removed it for the e.g.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:46:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55909#M3245</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2013-03-08T13:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: sideview utils doing strange stuff with fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55910#M3246</link>
      <description>&lt;P&gt;yep - all my problems disappeared when i remove the "$". from the eval statements. Looks like sideview was trying to interpret those as variables I guess. I also tried escaping the dollar signs but didn't work. How would I go about using &lt;CODE&gt;... | eval DollarField="$".round(DollarField)&lt;/CODE&gt; in sideview?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55910#M3246</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2013-03-08T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: sideview utils doing strange stuff with fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55911#M3247</link>
      <description>&lt;P&gt;The error was being caused by an &lt;CODE&gt;... | eval X="$".X&lt;/CODE&gt; in the search / PostProcess. Sideview Utils interprets this as a variable.&lt;/P&gt;

&lt;P&gt;Now just need to figure out how to format currency using a different approach.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:51:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55911#M3247</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2013-03-08T13:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: sideview utils doing strange stuff with fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55912#M3248</link>
      <description>&lt;P&gt;Give &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;a try.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55912#M3248</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-08T13:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: sideview utils doing strange stuff with fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55913#M3249</link>
      <description>&lt;P&gt;See the doummentation about using $$ to escape literal $ characters.   Admittedly you have to actually read the core documentation and come across it - there is no page saying "what if i want to use a dollar sign".  &lt;/P&gt;

&lt;P&gt;But if you go to "Key Techniques &amp;gt; Embedding dynamic values into your own HTML &amp;gt; Embedding HTML and including $foo$ values",   there is a panel that talks about exactly this, titled "what if i want to use an actual dollar sign character?"&lt;/P&gt;

&lt;P&gt;And reading the core documentation is a good thing to do.  There is all kinds of useful information and best-practice stuff in there that will save you a great deal of time in future if you spend a little time reading it now. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 18:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55913#M3249</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-03-08T18:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: sideview utils doing strange stuff with fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55914#M3250</link>
      <description>&lt;P&gt;yeah - i worked through about half the docs and examples, was trying to get a report done under a bit of a time constraint so dove in without finishing the examples. will continue working through docs and examples this week.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 07:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55914#M3250</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2013-03-11T07:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: sideview utils doing strange stuff with fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55915#M3251</link>
      <description>&lt;P&gt;Then you're more diligent than most. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; Keep going - I know from experience that time reading the docs pays a huge ongoing dividend. Which is the only reason I harp on it to the point of being annoying.  Possibly past it.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 18:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55915#M3251</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-03-11T18:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: sideview utils doing strange stuff with fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55916#M3252</link>
      <description>&lt;P&gt;That, on both counts &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:42:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/sideview-utils-doing-strange-stuff-with-fields/m-p/55916#M3252</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-11T19:42:34Z</dc:date>
    </item>
  </channel>
</rss>

