<?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 How to edit my configurations to fetch the client logs from VM to Splunk Enterprise? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-configurations-to-fetch-the-client-logs-from-VM/m-p/206714#M40804</link>
    <description>&lt;P&gt;i have configured Splunk Enterprise in my local and universal forwarder in my VM.&lt;BR /&gt;
now i need to fetch the tomcat logs from VM to my local splunk&lt;/P&gt;

&lt;P&gt;i have configured the Splunk inputs.conf as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = PC316522

[tcp://:9997]
connection_host=dns
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and serverclass.conf as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[serverClass:Universal Forwarders:app:sendtoindexer]
restartSplunkWeb = 0
restartSplunkd = 0
stateOnClient = enabled

[serverClass:Universal Forwarders:app:Splunk_TA_windows]
restartSplunkWeb = 0
restartSplunkd = 0
stateOnClient = enabled

[serverClass:Universal Forwarders]
whitelist.0 = 10.223.68.78
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in my VM, inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = CTSC00637603501

[monitor://D:\TOMCAT8\apache-tomcat-8.0.26-windows-x64\apache-tomcat-8.0.26\logs]
disabled=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and outputs.conf as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = 10.226.217.238:8089

[tcpout-server://10.226.217.238:8089]
disabled=false
 and deploymentclient.conf as below:

[deployment-client]
phoneHomeIntervalInSecs = 1800

[target-broker:deploymentServer]
targetUri = 10.226.217.238:8089
phoneHomeIntervalInSecs = 1800
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But while searching for logs in Splunk, am not getting the client tomcat logs, could you please help me on this.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Gautami. K&lt;/P&gt;</description>
    <pubDate>Mon, 26 Dec 2016 07:46:55 GMT</pubDate>
    <dc:creator>gautami433806</dc:creator>
    <dc:date>2016-12-26T07:46:55Z</dc:date>
    <item>
      <title>How to edit my configurations to fetch the client logs from VM to Splunk Enterprise?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-configurations-to-fetch-the-client-logs-from-VM/m-p/206714#M40804</link>
      <description>&lt;P&gt;i have configured Splunk Enterprise in my local and universal forwarder in my VM.&lt;BR /&gt;
now i need to fetch the tomcat logs from VM to my local splunk&lt;/P&gt;

&lt;P&gt;i have configured the Splunk inputs.conf as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = PC316522

[tcp://:9997]
connection_host=dns
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and serverclass.conf as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[serverClass:Universal Forwarders:app:sendtoindexer]
restartSplunkWeb = 0
restartSplunkd = 0
stateOnClient = enabled

[serverClass:Universal Forwarders:app:Splunk_TA_windows]
restartSplunkWeb = 0
restartSplunkd = 0
stateOnClient = enabled

[serverClass:Universal Forwarders]
whitelist.0 = 10.223.68.78
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in my VM, inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = CTSC00637603501

[monitor://D:\TOMCAT8\apache-tomcat-8.0.26-windows-x64\apache-tomcat-8.0.26\logs]
disabled=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and outputs.conf as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = 10.226.217.238:8089

[tcpout-server://10.226.217.238:8089]
disabled=false
 and deploymentclient.conf as below:

[deployment-client]
phoneHomeIntervalInSecs = 1800

[target-broker:deploymentServer]
targetUri = 10.226.217.238:8089
phoneHomeIntervalInSecs = 1800
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But while searching for logs in Splunk, am not getting the client tomcat logs, could you please help me on this.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Gautami. K&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2016 07:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-configurations-to-fetch-the-client-logs-from-VM/m-p/206714#M40804</guid>
      <dc:creator>gautami433806</dc:creator>
      <dc:date>2016-12-26T07:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my configurations to fetch the client logs from VM to Splunk Enterprise?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-configurations-to-fetch-the-client-logs-from-VM/m-p/206715#M40805</link>
      <description>&lt;P&gt;Hi Gautami, does your UF have read access on that directory ?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2016 13:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-configurations-to-fetch-the-client-logs-from-VM/m-p/206715#M40805</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2016-12-26T13:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my configurations to fetch the client logs from VM to Splunk Enterprise?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-configurations-to-fetch-the-client-logs-from-VM/m-p/206716#M40806</link>
      <description>&lt;P&gt;Perhaps you want to use splunktcp:// on your indexer ? &lt;/P&gt;

&lt;P&gt;As per the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf"&gt;inputs.conf documentation&lt;/A&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The following configuration listens on TCP port 9996 for&lt;BR /&gt;
Splunk cooked event data from ANY splunk forwarder.&lt;BR /&gt;
The host of the data is set to the host name of the remote server ONLY IF the&lt;BR /&gt;
remote data has no host set, or if it is set to "localhost".&lt;/P&gt;

&lt;P&gt;[splunktcp://:9997]&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Note that I've changed the port to 9997. The above will setup the inputs.conf to listen for Splunk universal forwarder data which is likely what you want to do...&lt;/P&gt;

&lt;P&gt;Then refer to &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Outputsconf"&gt;outputs.conf.example&lt;/A&gt; within the outputs.conf documentation...(your outputs needs to be changed as well)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 09:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-configurations-to-fetch-the-client-logs-from-VM/m-p/206716#M40806</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2016-12-27T09:50:24Z</dc:date>
    </item>
  </channel>
</rss>

