Stanza types

Now that we have looked at common attributes, let's talk about the different types of stanzas in props.conf. Stanza definitions can take the following three forms:

  • [foo]
    • This is the exact name of a source type and is the most common type of stanza to be used; the source type of an event is usually defined in inputs.conf
    • Wildcards are not allowed
  • [source::/logs/.../*.log]
    • This matches the source attribute, which is usually the path to the log where the event came from
    • * matches a file or directory name
    • ... matches any part of a path
  • [host::*nyc*]
    • This matches the host attribute, which is usually the value of the hostname on a machine running Splunk Forwarder
    • * is allowed

Types follow this order in taking precedence: ...

Get Implementing Splunk 7 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.