Splunk-connect-for-kubernetes: Could we redirect a specific container log an an Index

Created on 3 Apr 2019  路  6Comments  路  Source: splunk/splunk-connect-for-kubernetes

Could we redirect a specific container log an an Index

Let me know if you need details.

documentation support

Most helpful comment

Hi,

I'm having the same issue. I see that we can only define sourcetypes in values.yaml. Do you have any examples or documentation that details how to route different container logs to separate indexes?

All 6 comments

Also for a native log format could we add a field for IndexName

logs:
nginx-access:
from:
file:
path: "/var/log/nginx-containers/host.access.log"
sourcetype: "nginx:access"
indexName: "nginx"

fluentd:monitor-agent are only going to default index there are no provision to put an indexName field to it.

Hi aakashbhalla1!

You definitely can, using fluentd filters and our built in jq_transformer, you can dynamically set the index based on various variables that fluentd tags the log with as it moves through the pipeline.

Will work on getting a good reference doc and how-to to help users learn and extend their config, and will see how much of it we can expose via helm, vs directly editing the templates.

Hi,

I'm having the same issue. I see that we can only define sourcetypes in values.yaml. Do you have any examples or documentation that details how to route different container logs to separate indexes?

Just wanted to follow up on this issue. I was wondering if there were any updates.

resolved as part of #294

Was this page helpful?
0 / 5 - 0 ratings

Related issues

beth2016 picture beth2016  路  6Comments

matthewmodestino picture matthewmodestino  路  4Comments

stiller-leser picture stiller-leser  路  8Comments

bearmoo-repo picture bearmoo-repo  路  6Comments

lindsjan picture lindsjan  路  7Comments