|
The Search in below does work in search app.
but it doesn't work in the View of dashboard. it printed error like below. PARSER: Applying intentions failed Error in 'eval' command: The expression is malformed. An unexpected character is reached at '[search index=_internal | fields arch | rename arch as search | head 1]'. |

If that is the error it returns, it sounds like it's another search causing the problems rather than the one you've listed here.
Eval and subsearches works, but can be tricky. Have a look at dwaddle's answer here: http://splunk-base.splunk.com/answers/31842/why-cant-i-use-subsearch-in-the-case-function-in-the-eval-command