What is a Splunk source, sourcetype, and host? [Intermediate]
Answer
In Splunk, source is where the data came from, sourcetype describes the data format, and host identifies the machine or logical source host. These fields are foundational for search, parsing, and governance.
Technical explanation
source may be a file path, API input, stream, or object name.
sourcetype controls parsing behavior and field extraction conventions.
host helps identify origin, but in Kubernetes it may need careful design because pod, node, and container identities differ.
Hands-on example
Example: source=/var/log/checkout/app.log, sourcetype=checkout_json, host=ip-10-0-2-17. A search can start with index=prod_app sourcetype=checkout_json host=ip-10-0-2-17 to inspect logs from one node or container source.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Observability interview questions
- How do you build a Splunk dashboard, and when is it better than Grafana? [Advanced]
- What is data retention and a bucket lifecycle (hot, warm, cold, frozen) in Splunk? [Advanced]
- What is the difference between a universal and a heavy forwarder? [Intermediate]
- How do you correlate logs and metrics during an incident? [Advanced]
- What is the difference between a Splunk forwarder, indexer, and search head? [Intermediate]
- What is Wavefront (Tanzu Observability), and what is it used for? [Advanced]
- What is the Splunk data pipeline (input, parsing, indexing, search)? [Intermediate]
- What is the Wavefront proxy, and why use it? [Advanced]