<?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: Deployment Client Query Help  - How many server class are you a member of and what are they? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Client-Query-Help-How-many-server-class-are-you-a/m-p/351291#M13022</link>
    <description>&lt;P&gt;Great post.&lt;/P&gt;

&lt;P&gt;How would i get the host ip address into the end result too?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2018 11:43:11 GMT</pubDate>
    <dc:creator>davidjohnbecket</dc:creator>
    <dc:date>2018-08-22T11:43:11Z</dc:date>
    <item>
      <title>Deployment Client Query Help  - How many server class are you a member of and what are they?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Client-Query-Help-How-many-server-class-are-you-a/m-p/351288#M13019</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm looking for some help on reporting on the status of my deployment client for better coverage.&lt;/P&gt;

&lt;P&gt;I know the Deployment Client data is available via rest using the following server on the Deployment Server:&lt;BR /&gt;
 "I rest /services/deployment/server/clients count=0 splunk_server=local"&lt;/P&gt;

&lt;P&gt;However, I need some help with pulling out exactly what I need. which is the clientName, number of serverclasses the client is a member of and the names of the serverclasses (in one field).&lt;/P&gt;

&lt;P&gt;So something like this:&lt;BR /&gt;
clientName, NumberOfServerClasses, ServerClassNames&lt;/P&gt;

&lt;P&gt;myServer | 3 | thisclass;thatclass;andtheotherone&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated. Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 17:53:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Client-Query-Help-How-many-server-class-are-you-a/m-p/351288#M13019</guid>
      <dc:creator>quihong</dc:creator>
      <dc:date>2017-03-10T17:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Client Query Help  - How many server class are you a member of and what are they?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Client-Query-Help-How-many-server-class-are-you-a/m-p/351289#M13020</link>
      <description>&lt;P&gt;Here you go.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/deployment/server/clients count=0 splunk_server=local  | table hostname serverClasses.*.stateOnClient 
| untable hostname ServerClassNames dummy 
| rex field=ServerClassNames "serverClasses\.(?&amp;lt;ServerClassNames&amp;gt;[^\.]+)\.stateOnClient$" 
| stats values(ServerClassNames) as ServerClassNames dc(ServerClassNames) as NumberOfServerClasses by hostname 
| rename hostname as clientName
| table clientName, NumberOfServerClasses, ServerClassNames
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There will multiple columns for each server class the hostname/client belongs to. I just took one such column type, converted columns to rows, extracted server class name and ran stats. Run the query portion by portion to see what it does.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 19:48:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Client-Query-Help-How-many-server-class-are-you-a/m-p/351289#M13020</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-10T19:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Client Query Help  - How many server class are you a member of and what are they?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Client-Query-Help-How-many-server-class-are-you-a/m-p/351290#M13021</link>
      <description>&lt;P&gt;@somesoni2, you're my SPL hero! Thank you so much. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 20:00:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Client-Query-Help-How-many-server-class-are-you-a/m-p/351290#M13021</guid>
      <dc:creator>quihong</dc:creator>
      <dc:date>2017-03-10T20:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Client Query Help  - How many server class are you a member of and what are they?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Client-Query-Help-How-many-server-class-are-you-a/m-p/351291#M13022</link>
      <description>&lt;P&gt;Great post.&lt;/P&gt;

&lt;P&gt;How would i get the host ip address into the end result too?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:43:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Client-Query-Help-How-many-server-class-are-you-a/m-p/351291#M13022</guid>
      <dc:creator>davidjohnbecket</dc:creator>
      <dc:date>2018-08-22T11:43:11Z</dc:date>
    </item>
  </channel>
</rss>

