question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

definition/values for APPS_OBJ?

See original GitHub issue

https://company.splunkcloud.com/en-US/app/splunk_app_infrastructure/configure shows following configuration code:

export MONITORING_MACHINE= && export HEC_TOKEN= && export HEC_PORT= && export GLOBAL_HEC_INSECURE_SSL=false && export OBJECTS_INSECURE_SSL=true && export METRICS_INSECURE_SSL=true && export JOURNALD_PATH=/run/log/journal && export KUBELET_PROTOCOL=https && export METRICS_INDEX=em_metrics && export LOG_INDEX=main && export META_INDEX=em_meta && export CLUSTER_NAME= && export HELM_RELEASE_NAME= && export KUBERNETES_NAMESPACE= && export CORE_OBJ=pods,nodes && export APPS_OBJ= && files=("kubernetes_connect_template.yaml" "deploy_sck_k8s.sh") && for each in "${files[@]}"; do wget -O-  https://company.splunkcloud.com/en-US/static/app/splunk_app_infrastructure/kubernetes_connect/"$each" > $each; done && wget https://github.com/splunk/splunk-connect-for-kubernetes/releases/download/1.2.0/splunk-connect-for-kubernetes-1.2.0.tgz -O splunk-connect-for-kubernetes.tgz && bash deploy_sck_k8s.sh

after filling out fields APPS_OBJ doesn’t get a value

Could you point me to some details on APPS_OBJ?

https://github.com/splunk/splunk-connect-for-kubernetes/issues/35 https://github.com/splunk/splunk-connect-for-kubernetes/issues/265

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
matthewmodestinocommented, Apr 15, 2020

The APPS_OBJ map to Splunk object pod configmap, setting the the objects to collect.

https://docs.splunk.com/Documentation/InfraApp/2.0.3/Admin/AddDataKubernetes#2._Specify_configuration_options

image

image

Splunk app for infra has a directory called ~/appserver/static/ where all the add data templates are kept. If you have a look at the kubernetes one, you’ll see it renders the objects like this in the values.yaml, when you select them all:

#local config for objects chart
splunk-kubernetes-objects:
  rbac:
    create: true
  serviceAccount:
    create: true
    name: splunk-kubernetes-objects
  kubernetes:
    insecureSSL: true
    clusterName: MicroK8s
  objects:
    core:
      v1: [{"name":"pods", "interval":"60s"},{"name":"nodes", "interval":"60s"},{"name":"component_statuses", "interval":"60s"},{"name":"config_maps", "interval":"60s"},{"name":"namespaces", "interval":"60s"},{"name":"persistent_volumes", "interval":"60s"},{"name":"persistent_volume_claims", "interval":"60s"},{"name":"resource_quotas", "interval":"60s"},{"name":"services", "interval":"60s"},{"name":"service_accounts", "interval":"60s"},{"name":"events", "mode":"watch"},]
    apps:
      v1:
        [{"name":"daemon_sets", "interval":"60s"},{"name":"deployments", "interval":"60s"},{"name":"replica_sets", "interval":"60s"},{"name":"stateful_sets", "interval":"60s"},]
  splunk:
    hec:
      indexName: em_meta

App for infra doesnt expose all possibilities, but it uses many of them. but technically you can call any valid k8s endpoint supported by the ruby client we use.

https://github.com/splunk/splunk-connect-for-kubernetes/blob/20e67c6f2dcf4d06f6efc7cc6763126946a6956f/helm-chart/splunk-connect-for-kubernetes/values.yaml#L492-L546

0reactions
matthewmodestinocommented, Apr 15, 2020

anytime! let me know if you get stuck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

App object in Power Apps - Power Platform | Microsoft Learn
The definition in Formulas is the single source of truth and the value can't be changed somewhere else in the app.
Read more >
What is an Object in Programming? - TechTarget
State refers to the properties of an object. For example, values of variables in the object contain data that can be added, changed...
Read more >
Objects in Apps Script - Spreadsheet Dev
An object is a value that contains other values. The values contained within an object are called properties. To make things more complex,...
Read more >
Value Objects: AppCode's Code Generation to the Rescue
A Value Object is a handy way to combine multiple values in a single object. It sounds simple—you just make each value a...
Read more >
Object.values() In JavaScript - GeeksforGeeks
JavaScript object.values() method is used to return an array whose elements are the enumerable property values found on the object.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found