<?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 create an outputs.conf file for access and error logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-an-outputs-conf-file-for-access-and-error-logs/m-p/279182#M53441</link>
    <description>&lt;P&gt;The only purpose of &lt;CODE&gt;outputs.conf&lt;/CODE&gt; is to define where the forwarder should send the data to. So if you want the data from the above 2 log files, you will define this in your &lt;CODE&gt;SPLUNK_HOME/etc/system/local/inputs.conf&lt;/CODE&gt; file then create an &lt;CODE&gt;outputs.conf&lt;/CODE&gt; file in the same directory and have it point to your indexer(s)&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Outputsconf"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Outputsconf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 20:34:09 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2016-10-24T20:34:09Z</dc:date>
    <item>
      <title>How to create an outputs.conf file for access and error logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-an-outputs-conf-file-for-access-and-error-logs/m-p/279181#M53440</link>
      <description>&lt;P&gt;how do I got about creating an outputs.conf file for&lt;/P&gt;

&lt;P&gt;/var/log/nginx/access.log&lt;BR /&gt;
/var/log/nginx/error.log&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:29:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-an-outputs-conf-file-for-access-and-error-logs/m-p/279181#M53440</guid>
      <dc:creator>splgeek</dc:creator>
      <dc:date>2016-10-24T20:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an outputs.conf file for access and error logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-an-outputs-conf-file-for-access-and-error-logs/m-p/279182#M53441</link>
      <description>&lt;P&gt;The only purpose of &lt;CODE&gt;outputs.conf&lt;/CODE&gt; is to define where the forwarder should send the data to. So if you want the data from the above 2 log files, you will define this in your &lt;CODE&gt;SPLUNK_HOME/etc/system/local/inputs.conf&lt;/CODE&gt; file then create an &lt;CODE&gt;outputs.conf&lt;/CODE&gt; file in the same directory and have it point to your indexer(s)&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Outputsconf"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Outputsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:34:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-an-outputs-conf-file-for-access-and-error-logs/m-p/279182#M53441</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-10-24T20:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an outputs.conf file for access and error logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-an-outputs-conf-file-for-access-and-error-logs/m-p/279183#M53442</link>
      <description>&lt;P&gt;where do i define this paths in the output.confs file?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-an-outputs-conf-file-for-access-and-error-logs/m-p/279183#M53442</guid>
      <dc:creator>splgeek</dc:creator>
      <dc:date>2016-10-24T20:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an outputs.conf file for access and error logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-an-outputs-conf-file-for-access-and-error-logs/m-p/279184#M53443</link>
      <description>&lt;P&gt;Your &lt;CODE&gt;inputs.conf&lt;/CODE&gt; will look like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = YOUR_HOSTNAME

[monitor:///var/log/nginx/access.log]
disabled = false
sourcetype = YOUR_SOURCETYPE
index = YOUR_INDEX

[monitor:///var/log/nginx/error.log]
disabled = false
sourcetype = YOUR_SOURCETYPE
index = YOUR_INDEX
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your &lt;CODE&gt;outputs.conf&lt;/CODE&gt; will look like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = xxx.xx.xx.xxx_9997

[tcpout:xxx.xx.xx.xxx_9997]
server = xxx.xx.xx.xxx:9997

[tcpout-server://xxx.xx.xx.xxx:9997]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where the x' s represent your indexer IP address&lt;/P&gt;

&lt;P&gt;This will be under &lt;CODE&gt;/etc/system/local&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:48:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-an-outputs-conf-file-for-access-and-error-logs/m-p/279184#M53443</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-10-24T20:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an outputs.conf file for access and error logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-an-outputs-conf-file-for-access-and-error-logs/m-p/279185#M53444</link>
      <description>&lt;P&gt;You have to configure inputs.conf with two stanzas like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/nginx/access.log]
disabled=0
index=your_index
sourcetype=access

[monitor:///var/log/nginx/error.log]
disabled=0
index=your_index
sourcetype=error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Inputs.conf is localized in $SPLUNK_HOME/etc/system/local or $SPLUNK_HOME/etc/apps/yourapp/local&lt;BR /&gt;
for details see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Inputsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Inputsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;outputs.conf isn't used to ingest logs, but to address the logs to forward to your indexes (see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Outputsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Outputsconf&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-an-outputs-conf-file-for-access-and-error-logs/m-p/279185#M53444</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T11:32:46Z</dc:date>
    </item>
  </channel>
</rss>

