<?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: Help with the query that works with splunk server groups in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-the-query-that-works-with-splunk-server-groups/m-p/290829#M87896</link>
    <description>&lt;P&gt;What is your intention with these parts of the query:&lt;BR /&gt;
&lt;CODE&gt;| search [ | makeresults | eval host= apacheweb123 | table host | makemv host delim=" " | mvexpand host | eval host="".host."" | format ]&lt;/CODE&gt; &lt;BR /&gt;
and&lt;BR /&gt;
&lt;CODE&gt;| append [ | makeresults | eval host=apacheweb123 | table host | makemv host delim=" " | mvexpand host ]&lt;/CODE&gt;??&lt;/P&gt;

&lt;P&gt;The subsearch in the first section returns: &lt;CODE&gt;NOT()&lt;/CODE&gt; for me, and the subsearch in the second section returns no results. I tried to guess what your intentions might be, but I can't really make sense out of the &lt;CODE&gt;|table...|makemv...|mvexpand&lt;/CODE&gt; thread, given that you are applying them to a single event to which it looks like you are just intending to assign a string value. &lt;/P&gt;

&lt;P&gt;Additionally, &lt;CODE&gt;| makeresults | eval host=apacheweb123&lt;/CODE&gt; will not do anything useful, because Splunk treats the &lt;CODE&gt;apacheweb123&lt;/CODE&gt; portion as a variable name reference, rather than a string unless you wrap it in double-quotes: &lt;CODE&gt;| makeresults | eval host="apacheweb123"&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;Can you explain more about what you're trying to do with all the subsearches?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2018 21:48:38 GMT</pubDate>
    <dc:creator>elliotproebstel</dc:creator>
    <dc:date>2018-01-08T21:48:38Z</dc:date>
    <item>
      <title>Help with the query that works with splunk server groups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-the-query-that-works-with-splunk-server-groups/m-p/290828#M87895</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Below is the query i am using to get the hostname , IP addresses and last reported to splunk . &lt;/P&gt;

&lt;P&gt;| metadata type=hosts index=apache_web splunk_server_group=abc | search [ | makeresults | eval host= apacheweb123 | table host | makemv host delim=" " | mvexpand host | eval host="&lt;EM&gt;".host."&lt;/EM&gt;" | format ]  | table host  | append [ | makeresults | eval host=apacheweb123 | table host | makemv host delim=" " | mvexpand host ] | join [ search index=_internal hostname=* | stats count by hostname sourceIp | table hostname sourceIp | rename hostname as host ]&lt;/P&gt;

&lt;P&gt;But the above search is not working when the server group is mentioned but i need server groups to make search faster over a large data . Any help to get the hostname , IP address , Last reported by including splunk_server_group  would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:30:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-the-query-that-works-with-splunk-server-groups/m-p/290828#M87895</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2020-09-29T17:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the query that works with splunk server groups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-the-query-that-works-with-splunk-server-groups/m-p/290829#M87896</link>
      <description>&lt;P&gt;What is your intention with these parts of the query:&lt;BR /&gt;
&lt;CODE&gt;| search [ | makeresults | eval host= apacheweb123 | table host | makemv host delim=" " | mvexpand host | eval host="".host."" | format ]&lt;/CODE&gt; &lt;BR /&gt;
and&lt;BR /&gt;
&lt;CODE&gt;| append [ | makeresults | eval host=apacheweb123 | table host | makemv host delim=" " | mvexpand host ]&lt;/CODE&gt;??&lt;/P&gt;

&lt;P&gt;The subsearch in the first section returns: &lt;CODE&gt;NOT()&lt;/CODE&gt; for me, and the subsearch in the second section returns no results. I tried to guess what your intentions might be, but I can't really make sense out of the &lt;CODE&gt;|table...|makemv...|mvexpand&lt;/CODE&gt; thread, given that you are applying them to a single event to which it looks like you are just intending to assign a string value. &lt;/P&gt;

&lt;P&gt;Additionally, &lt;CODE&gt;| makeresults | eval host=apacheweb123&lt;/CODE&gt; will not do anything useful, because Splunk treats the &lt;CODE&gt;apacheweb123&lt;/CODE&gt; portion as a variable name reference, rather than a string unless you wrap it in double-quotes: &lt;CODE&gt;| makeresults | eval host="apacheweb123"&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;Can you explain more about what you're trying to do with all the subsearches?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 21:48:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-the-query-that-works-with-splunk-server-groups/m-p/290829#M87896</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-01-08T21:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with the query that works with splunk server groups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-the-query-that-works-with-splunk-server-groups/m-p/290830#M87897</link>
      <description>&lt;P&gt;trying to display the metadata of the host  enter by the user .&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 22:22:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-the-query-that-works-with-splunk-server-groups/m-p/290830#M87897</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2018-01-08T22:22:15Z</dc:date>
    </item>
  </channel>
</rss>

