<?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: Using append/multireport in a panel search or using multisearch with map in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-append-multireport-in-a-panel-search-or-using/m-p/642897#M222662</link>
    <description>&lt;P&gt;Try changing the eval to this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval message = "*".LookUp."*"&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 10 May 2023 17:50:20 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-05-10T17:50:20Z</dc:date>
    <item>
      <title>How to use append/multireport in a panel search or using multisearch with map?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-append-multireport-in-a-panel-search-or-using/m-p/642873#M222655</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I'm looking to get a time range from two events, one from a standard search, the other from a different search based on a regex derived from a third search and report the difference in times between the events. However I'm struggling to either make the multisearch work with map, or multireport/append work in a panel, even though those searches work just fine in the regular search bar.&lt;BR /&gt;&lt;BR /&gt;To give you an idea, I have the failed multisearch (which doesn't work due to me using map):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;| multisearch &lt;BR /&gt;[| search index=index1 "First text string"] &lt;BR /&gt;[| search index=index1 "text string for regex lookup"&lt;BR /&gt;| rex field=message "^(?&amp;lt;LookUp&amp;gt;\d+)\s"&lt;BR /&gt;| map search="search index=index1 message = $LookUp$*"]&lt;BR /&gt;&lt;BR /&gt;| stats earliest(_time) as time1, latest(_time) as time2&lt;BR /&gt;| eval difference=time2-time1&lt;BR /&gt;| eval difference=tostring(difference, "duration")&lt;BR /&gt;| table time1 time2 difference&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Obviously this doesn't work due to non-streaming commands, but multireport does, however it does not work in a standard statistics table panel, or any other panel that I've tried, just giving me a "search is waiting for input" message:&lt;/P&gt;
&lt;PRE&gt;| multireport&lt;BR /&gt;[| search index=index1 "First text string"] &lt;BR /&gt;[| search index=index1 "text string for regex lookup"&lt;BR /&gt;| rex field=message "^(?&amp;lt;LookUp&amp;gt;\d+)\s"&lt;BR /&gt;| map search="search index=index1 message = $LookUp$*"]&lt;BR /&gt;&lt;BR /&gt;| stats earliest(_time) as time1, latest(_time) as time2&lt;BR /&gt;| eval difference=time2-time1&lt;BR /&gt;| eval difference=tostring(difference, "duration")&lt;BR /&gt;| table time1 time2 difference&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The other option is append which once again works in the regular search but not in the panel search:&lt;/P&gt;
&lt;PRE&gt;index=index1 "First text string"&lt;BR /&gt;| append&lt;BR /&gt;[ search index=index1 "text string for regex lookup"&lt;BR /&gt;| rex field=message "^(?&amp;lt;LookUp&amp;gt;\d+)\s"&lt;BR /&gt;| map search="search index=index1 message = $LookUp$*"]&lt;BR /&gt;| stats earliest(_time) as time1, latest(_time) as time2&lt;BR /&gt;| eval difference=time2-time1&lt;BR /&gt;| eval difference=tostring(difference, "duration")&lt;BR /&gt;| table time1 time2 difference&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;I've been&amp;nbsp; trying to find a way to do this but with no luck - if anyone has anything they can spot or advise that would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 02:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-append-multireport-in-a-panel-search-or-using/m-p/642873#M222655</guid>
      <dc:creator>djohnson99</dc:creator>
      <dc:date>2023-05-11T02:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using append/multireport in a panel search or using multisearch with map</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-append-multireport-in-a-panel-search-or-using/m-p/642884#M222658</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index1 "First text string"
| append
[ search index=index1 [ search index=index1 "text string for regex lookup"
| rex field=message "^(?&amp;lt;LookUp&amp;gt;\d+)\s"
| eval message = LookUp
| fields message] ]
| stats earliest(_time) as time1, latest(_time) as time2
| eval difference=time2-time1
| eval difference=tostring(difference, "duration")
| table time1 time2 difference&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 May 2023 16:00:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-append-multireport-in-a-panel-search-or-using/m-p/642884#M222658</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-10T16:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using append/multireport in a panel search or using multisearch with map</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-append-multireport-in-a-panel-search-or-using/m-p/642895#M222661</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That is now giving me a table on the panel, however is only returning one result now. I suspect the issue is with the regex/eval command.&amp;nbsp; Just putting in this into the search returns nothing:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;index=index1 "First text string"
| append
[ search index=index1 [ search index=index1 "text string for regex lookup"
| rex field=message "^(?&amp;lt;LookUp&amp;gt;\d+)\s"
| eval message = LookUp
| fields message] ]&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;The regex is grabbing a number at the start of the message, so "123456 etc etc etc" and previously worked in my other attempts so I'm assuming is fine, I suspect the issue is with the eval message = Lookup line, as manually putting in " &lt;STRONG&gt;"123456*"&lt;/STRONG&gt; " returns results, so I need the LookUp regex field with a wildcard at the end.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've tried combinations of "$LookUp$*", '$LookUp$*' etc but nothing seems to work there either.&amp;nbsp; Using LookUp* without quotes returns a "&lt;SPAN&gt;The expression is malformed. The factor is missing." error.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 17:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-append-multireport-in-a-panel-search-or-using/m-p/642895#M222661</guid>
      <dc:creator>djohnson99</dc:creator>
      <dc:date>2023-05-10T17:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using append/multireport in a panel search or using multisearch with map</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-append-multireport-in-a-panel-search-or-using/m-p/642897#M222662</link>
      <description>&lt;P&gt;Try changing the eval to this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval message = "*".LookUp."*"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 May 2023 17:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-append-multireport-in-a-panel-search-or-using/m-p/642897#M222662</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-10T17:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using append/multireport in a panel search or using multisearch with map</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-append-multireport-in-a-panel-search-or-using/m-p/642988#M222713</link>
      <description>&lt;P&gt;That did it - I managed to trim it down just to LookUp."*" as I only needed to wildcard the end but all is well now.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 08:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-append-multireport-in-a-panel-search-or-using/m-p/642988#M222713</guid>
      <dc:creator>djohnson99</dc:creator>
      <dc:date>2023-05-11T08:54:14Z</dc:date>
    </item>
  </channel>
</rss>

