Admin Manual

 


How Splunk Works

Configure outputs.conf

This documentation does not apply to the most recent version of Splunk. Click here for the latest version.

Configure outputs.conf

You can configure outputs.conf to send to multiple groups of one or more servers, called target groups. You can also set up a default group, made up of one or more target groups, which will receive all the data not sent to target groups. If there is more than one group specified in the default group, the events will be cloned to all listed default groups.


Please note: while forwarding, events are stored in memory. If any receiver goes down, Splunk will buffer the events in memory on the forwarder. Also, by default, time extraction is based on the timestamp in the event, not when Splunk receives the event. If you want to change this default behavior while forwarding, please configure your forwarder to turn off timestamping, in which case Splunk will use the time the forwarder saw the event.


Configuration

Default group and global settings

Add your default group stanza to $SPLUNK_HOME/etc/bundles/local/outputs.conf on the forwarding server.


[tcpout]
defaultGroup= Group1, Group2, ...
attribute1 = val1
attribute2 = val2
...

If you have no default group, you can still set global settings in the [tcpout] stanza.


Please note: settings for your default group are global and will be inherited by all target groups. You can override these settings by creating explicit rules for each target group.


Target groups

Add any number of target group stanzas to $SPLUNK_HOME/etc/bundles/local/outputs.conf on the forwarding server.


[tcpout:$TARGET_GROUP]
server=$IP:$PORT, $IP2:$PORT2...
attribute1 = val1
attribute2 = val2
...

Please note: If your target group is made up of more than one $IP:$PORT, the forwarder will send events in a round robin between these URIs.


Single server

Add any number of single server stanzas to $SPLUNK_HOME/etc/bundles/local/outputs.conf on the forwarding server.


[tcpout-server://$IP:$PORT]
attribute1 = val1
attribute2 = val2
...

Use single server configuration to set up SSL and backoff settings (see below).


Optional attributes

There are a number of optional attributes you can set in outputs.conf.


Queue settings

Your data stream enters a queue as it leaves the forwarder. There are a few queue settings you can tweak in outputs.conf.


Backoff settings

Backoff settings are server specific, meaning they must be set in a [tcpout-server://$IP:$PORT] stanza. They cannot be set for a target or default group.


If one of the target group servers becomes unreachable, you can configure the forwarder to retry the connection. If a connection needs to be retried, the forwarder will use backoffAtStartup or initialBackoff as the number of seconds to wait. After this time expires, the forwarder doubles the number of seconds over and over again until reaching maxBackoff. When this is reached, the forwarder stops doubling the number of seconds in between retries and uses the same maxBackoff seconds. It retries at this frequency maxNumberOfRetriesAtHighestBackoff times or forever if that value is -1.


This documentation applies to the following versions of Splunk: 3.1 , 3.1.1 , 3.1.2 , 3.1.3 , 3.1.4 View the Article History for its revisions.


You must be logged into splunk.com in order to post comments. Log in now.

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.