<?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: how to provide a status of a forwarder to a customer in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173221#M34845</link>
    <description>&lt;P&gt;Thanks.  Some good info.  Still, be nice for Splunk to just provide a heartbeat log, which can be made available to customers (non-internal) and no license cost.  I see more and more customers trying to spin up Splunk as a service, and having this data available is important.  &lt;/P&gt;</description>
    <pubDate>Wed, 07 Jan 2015 19:47:27 GMT</pubDate>
    <dc:creator>a212830</dc:creator>
    <dc:date>2015-01-07T19:47:27Z</dc:date>
    <item>
      <title>how to provide a status of a forwarder to a customer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173211#M34835</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have some customers who do not have access to their servers and would like the ability to validate that the forwarder is running.  Is there a way to do this? &lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 22:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173211#M34835</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-01-05T22:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide a status of a forwarder to a customer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173212#M34836</link>
      <description>&lt;P&gt;You can set up an alert for the below query as you'l always have internal logs coming in from the forwarder&lt;/P&gt;

&lt;PRE&gt;index=_internal host=myhost | stats count &lt;/PRE&gt;

&lt;P&gt;Schedule an alert for the above query and the alert condition where the results = 0, which means that the forwarder is in trouble.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 23:35:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173212#M34836</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2015-01-05T23:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide a status of a forwarder to a customer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173213#M34837</link>
      <description>&lt;P&gt;I want them to have the ability to see that it's actually running, without relying on us to set something up.   I was hoping for a rest call or something...&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 23:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173213#M34837</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-01-05T23:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide a status of a forwarder to a customer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173214#M34838</link>
      <description>&lt;P&gt;Try to put this query and add it to a dashboard OR have them run the query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=_internal | search NOT (host="YourSplunkServers" ..OR ....Add more conditions to remove your splunk instances like search head, indexers, deployment servers etc) | table host, recentTime | eval age=now()-recentTime | eval status=if(age&amp;lt;300,"UP","DOWN") | table host, status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just replace "&lt;CODE&gt;index=_internal&lt;/CODE&gt;"  with "&lt;CODE&gt;index=*&lt;/CODE&gt;" if no access to _internal indexes (assuming forwarders are sending data frequently)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 23:53:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173214#M34838</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-01-05T23:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide a status of a forwarder to a customer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173215#M34839</link>
      <description>&lt;P&gt;If you are using Splunk version 6.2, "Deployment Monitor" App (comes default with installation/upgrade to 6.2) given forwarder information.  If you are using pre-6.2 release in your perf environment, then install 6.2 version on your test environment, goto "Deployment Monitor" app and get the search queries populating the forwarder information in the dashboard. &lt;/P&gt;

&lt;P&gt;Also there is app called "Data Onboarding" &lt;A href="https://apps.splunk.com/app/1769/#/overview" target="_blank"&gt;https://apps.splunk.com/app/1769/#/overview&lt;/A&gt; , install and see if you can find any useful information for you. From the dashboard you can get the search query and then you can customize and use it accordingly.&lt;/P&gt;

&lt;P&gt;E.g: below query from "Data Onboarding" app dashboard give information about  all forwarders&lt;/P&gt;

&lt;P&gt;index="_internal" source="&lt;EM&gt;metrics.lo&lt;/EM&gt;" group=tcpin_connections | eval sourceHost=if(isnull(hostname), sourceHost,hostname) | eval connectionType=case(fwdType=="uf","universal forwarder", fwdType=="lwf", "lightweight forwarder",fwdType=="full", "heavy forwarder", connectionType=="cooked" or connectionType=="cookedSSL","Splunk forwarder", connectionType=="raw" or connectionType=="rawSSL","syslog")| eval build=if(isnull(build),"n/a",build) | eval version=if(isnull(version),"pre 4.2",version) | eval guid=if(isnull(guid),sourceHost,guid) | eval os=if(isnull(os),"n/a",os)| eval arch=if(isnull(arch),"n/a",arch) | fields connectionType sourceIp sourceHost sourcePort destPort kb tcp_eps tcp_Kprocessed tcp_KBps splunk_server build version os arch guid&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173215#M34839</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2020-09-28T18:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide a status of a forwarder to a customer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173216#M34840</link>
      <description>&lt;P&gt;Thanks.  These are both useful for admins, but for customers who don't have access to internal indexes, they won't work. &lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 02:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173216#M34840</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-01-06T02:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide a status of a forwarder to a customer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173217#M34841</link>
      <description>&lt;P&gt;I don't think there is way to know the forwarder details without _internal index. &lt;BR /&gt;
But,&lt;BR /&gt;
The work around solution can be&lt;BR /&gt;
 1. As admin user ,schedule a search query on _internal to write forwarder status details to new index (like summary index) and configure the new index accessible for all customers.&lt;BR /&gt;
 2. So the customer can use the new index to know the forwarder details.&lt;/P&gt;

&lt;P&gt;let me know if this addresses your queries .&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 04:48:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173217#M34841</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2015-01-06T04:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide a status of a forwarder to a customer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173218#M34842</link>
      <description>&lt;P&gt;Thanks.   Looking at something like this:&lt;/P&gt;

&lt;P&gt;index=_internal host=*  component=TcpOutputProc "INFO  TcpOutputProc - Connected to idx" | stats count by host&lt;/P&gt;

&lt;P&gt;It looks like this shows that the connection is made to an indexer.  Question is - how often does the "INFO  TcpOutputProc - Connected to idx" message appear?  If it's a low-volume feed, will this message still appear on a regular basis?  &lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 15:31:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173218#M34842</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-01-06T15:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide a status of a forwarder to a customer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173219#M34843</link>
      <description>&lt;P&gt;You might check, but I think that you will only see this once each time the forwarder starts.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 22:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173219#M34843</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-01-06T22:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide a status of a forwarder to a customer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173220#M34844</link>
      <description>&lt;P&gt;As  @jayannah reports, there is no good way to get the forwarder details without access to the &lt;CODE&gt;_internal&lt;/CODE&gt; index. However, you can do this:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;create a search against the _internal index that summarizes the data in the way that you want to display it&lt;/LI&gt;
&lt;LI&gt;save the search as a scheduled search (perhaps run it once per hour)&lt;/LI&gt;
&lt;LI&gt;set the search up as a "embedded search" - this creates a link that you can give to your users - they can see the latest search results via the link even if they have no access to the underlying data&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Here is a possibility for the search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=* | eval latestEventSeen=strftime(lastTime,"%x %X") | fields host latestEventSeen
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search will be &lt;EM&gt;very&lt;/EM&gt; fast and doesn't even use the &lt;CODE&gt;_internal&lt;/CODE&gt; index. However, the forwarder could be connected and just not have any recent data to send - in this report it might look like it wasn't responding. The next search uses &lt;CODE&gt;_internal&lt;/CODE&gt; to look for a connection from the forwarder even if no user-viewable events are being sent.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*metrics.log group=tcpin_connections
| eval sourceHost=if(isnull(hostname), sourceHost,hostname) 
| rename connectionType as connectType
| eval connectType=case(fwdType=="uf","univ fwder", fwdType=="lwf", "lightwt fwder",fwdType=="full", "heavy fwder", connectType=="cooked" or connectType=="cookedSSL","Splunk fwder", connectType=="raw" or connectType=="rawSSL","legacy fwder")
| eval version=if(isnull(version),"pre 4.2",version)
| rename version as Ver  arch as MachType
| fields connectType sourceIp sourceHost destPort kb tcp_eps tcp_Kprocessed tcp_KBps splunk_server Ver MachType os
| eval Indexer= splunk_server
| eval Hour=relative_time(_time,"@h")
| stats sum(kb) as total_KB by Hour connectType Ver sourceIp sourceHost MachType os Indexer destPort
| fieldformat Hour=strftime(Hour,"%x %X") | fieldformat total_KB=tostring(total_KB,"commas") | rename os as OS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I like this search and I use variants of it a lot - but it shows only the forwarders that connected during the time range of the search. What if a host &lt;EM&gt;used&lt;/EM&gt; to be reporting but stopped yesterday? The best way to deal with this is to create a lookup table that contains a list of "expected hosts." For example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;hostname,ip,owner
db_server1,10.0.1.207,FinanceLTD
web037,192.168.7.27,EngineeringDiv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The extra fields don't really matter, but they can give you good info... Set this up as a lookup (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Knowledge/Usefieldlookupstoaddinformationtoyourevents"&gt;Add field lookups&lt;/A&gt; link)&lt;BR /&gt;&lt;BR /&gt;
Now, with the lookup, you can identify missing forwarders:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup host_lookup 
| join hostname [ search index=_internal source=*metrics.log group=tcpin_connections
    | stats latest(_time) as mostRecentConnection by hostname 
    | eval mostRecentConnection=strftime(mostRecentConnection,"%x %X") ]
| fillnull "- missing -" mostRecentConnection
| table hostname owner mostRecentConnection
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will report on &lt;STRONG&gt;all&lt;/STRONG&gt; forwarders in the lookup table, indicating if they have been heard from during the reporting period. It should run decently fast.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 22:56:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173220#M34844</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-01-06T22:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to provide a status of a forwarder to a customer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173221#M34845</link>
      <description>&lt;P&gt;Thanks.  Some good info.  Still, be nice for Splunk to just provide a heartbeat log, which can be made available to customers (non-internal) and no license cost.  I see more and more customers trying to spin up Splunk as a service, and having this data available is important.  &lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 19:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-provide-a-status-of-a-forwarder-to-a-customer/m-p/173221#M34845</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-01-07T19:47:27Z</dc:date>
    </item>
  </channel>
</rss>

