Skip to content

Commit 828b009

Browse files
committed
docs: fix firehose-subscription-id name
1 parent 7427ef5 commit 828b009

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ This is recommended for dev environments only.
107107
* `HEC_RETRIES`: Retry count for sending events to Splunk. After expiring, events will begin dropping causing data loss. (Default: 5)
108108
* `HEC_WORKERS`: Set the amount of Splunk HEC workers to increase concurrency while ingesting in Splunk. (Default: 8)
109109
* `ENABLE_EVENT_TRACING`: Enables event trace logging. Splunk events will now contain a UUID, Splunk Nozzle Event Counts, and a Subscription-ID for Splunk correlation searches. (Default: false)
110-
* `SPLUNK_LOGGING_INDEX`: The Splunk index where logs from the nozzle of the sourcetype `cf:splunknozzle` will be sent to. Warning: Setting an invalid index will cause events to be lost. This index must match one of the selected indexes for the Splunk HTTP event collector token used for the SPLUNK_TOKEN parameter. When not provided, all logging events will be forwarded to the default SPLUNK_INDEX. The default value is `""`
111-
* `STATUS_MONITOR_INTERVAL`: Time interval (in s/m/h. For example, 3600s or 60m or 1h) for Enabling Monitoring (Metric data of insights with in the connectors). Default is 0s (Disabled).
110+
* `SPLUNK_LOGGING_INDEX`: The Splunk index where logs from the nozzle of the sourcetype `cf:splunknozzle` will be sent to. Warning: Setting an invalid index will cause events to be lost. This index must match one of the selected indexes for the Splunk HTTP event collector token used for the SPLUNK_TOKEN parameter. When not provided, all logging events will be forwarded to the default SPLUNK_INDEX. (Default: "")
111+
* `STATUS_MONITOR_INTERVAL`: Time interval (in s/m/h. For example, 3600s or 60m or 1h) to enable monitoring of metric data within the connector. (This increases CPU load and should be used only for insights purposes. Default: 0s).
112112
* `SPLUNK_METRIC_INDEX`: Index in which metric data will be ingested when monitoring module is enabled
113113
* `SELECTED_MONITORING_METRICS`: Name of the metrics that you want to monitor and add using comma seprated values. List of the metrics that are supported in the metrics modules are given below
114114
* `REFRESH_SPLUNK_CONNECTION`: If set to true, PCF will periodically refresh connection to Splunk (how often depends on KEEP_ALIVE_TIMER value). If set to false connection will be kept alive and reused. (Default: false)
115115
* `KEEP_ALIVE_TIMER`: Time after which connection to Splunk will be refreshed, if `REFRESH_SPLUNK_CONNECTION` is set to true (in s/m/h. For example, 3600s or 60m or 1h). (Default: 30s)
116-
* `MEMORY_BALLAST_SIZE`: Size of memory allocated to reduce GC cycles. Size should be less than the total memory. Default is 0.
116+
* `MEMORY_BALLAST_SIZE`: Size of memory allocated to reduce GC cycles. Size should be less than the total memory. (Default: 0).
117117

118118
__About app cache params:__
119119

@@ -418,7 +418,7 @@ A correct setup logs a start message with configuration parameters of the Nozzle
418418
skip-ssl: true
419419
splunk-host: http://localhost:8088
420420
splunk-index: atomic
421-
subscription-id: splunk-firehose
421+
firehose-subscription-id: splunk-firehose
422422
trace-logging: true
423423
status-monitor-interval: 0s
424424
version:
@@ -487,7 +487,7 @@ sourcetype="cf:counterevent"
487487
488488
### 7. Nozzle is not collecting any data with 'websocket' (bad handshake) error
489489
490-
If the nozzle reports below error, then check if the configured "subscription-id" has '#' as a prefix. Please remove the prefix or prepend any other character than '#' to fix this issue.
490+
If the nozzle reports below error, then check if the configured "firehose-subscription-id" has '#' as a prefix. Please remove the prefix or prepend any other character than '#' to fix this issue.
491491
```
492492
Error dialing trafficcontroller server: websocket: bad handshake.\nPlease ask your Cloud Foundry Operator to check the platform configuration (trafficcontroller is wss://****:443).
493493
```

eventsink/splunk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func (s *Splunk) buildEvent(fields map[string]interface{}) map[string]interface{
245245

246246
if s.config.TraceLogging {
247247
extraFields["nozzle-event-counter"] = strconv.FormatUint(atomic.AddUint64(&s.eventCount, 1), 10)
248-
extraFields["subscription-id"] = s.config.SubscriptionID
248+
extraFields["firehose-subscription-id"] = s.config.SubscriptionID
249249
extraFields["uuid"] = s.config.UUID
250250
}
251251
for k, v := range s.config.ExtraFields {

splunknozzle/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type Config struct {
2727

2828
SkipSSLCF bool `json:"skip-ssl-cf"`
2929
SkipSSLSplunk bool `json:"skip-ssl-splunk"`
30-
SubscriptionID string `json:"subscription-id"`
30+
SubscriptionID string `json:"firehose-subscription-id"`
3131
KeepAlive time.Duration `json:"keep-alive"`
3232

3333
AddAppInfo string `json:"add-app-info"`
@@ -141,7 +141,7 @@ func NewConfigFromCmdFlags(version, branch, commit, buildos string) *Config {
141141
kingpin.Flag("keep-alive-timer", "Interval used to close and refresh connection to Splunk").
142142
OverrideDefaultFromEnvar("KEEP_ALIVE_TIMER").Default("30s").DurationVar(&c.KeepAliveTimer)
143143

144-
kingpin.Flag("enable-event-tracing", "Enable event trace logging: Adds splunk trace logging fields to events. uuid, subscription-id, nozzle event counter").
144+
kingpin.Flag("enable-event-tracing", "Enable event trace logging: Adds splunk trace logging fields to events. uuid, firehose-subscription-id, nozzle event counter").
145145
OverrideDefaultFromEnvar("ENABLE_EVENT_TRACING").Default("false").BoolVar(&c.TraceLogging)
146146
kingpin.Flag("debug", "Enable debug mode: forward to standard out instead of splunk").
147147
OverrideDefaultFromEnvar("DEBUG").Default("false").BoolVar(&c.Debug)

splunknozzle/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ var _ = Describe("Config", func() {
171171
"--job-host=nozzle.example.comc",
172172
"--skip-ssl-validation-cf",
173173
"--skip-ssl-validation-splunk",
174-
"--subscription-id=my-nozzlec",
174+
"--firehose-subscription-id=my-nozzlec",
175175
"--firehose-keep-alive=24s",
176176
"--add-app-info=OrgName",
177177
"--ignore-missing-app",

testing/integration/testcases/test_nozzle_configurations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_search_event_on_splunk_is_not_empty(self, test_env, splunk_logger):
2121
@pytest.mark.Critical
2222
@pytest.mark.parametrize("query_input", [
2323
"index={} cf_app_name=data_gen nozzle-event-counter>0", # nozzle-event-counter should be searchable
24-
"index={} cf_app_name=data_gen subscription-id::splunk-ci", # subscription-id should be searchable
24+
"index={} cf_app_name=data_gen firehose-subscription-id::splunk-ci", # subscription-id should be searchable
2525
"index={} cf_app_name=data_gen uuid::*" # uuid should be searchable
2626
])
2727
def test_enable_event_tracing_is_true(self, test_env, splunk_logger, query_input):
@@ -109,7 +109,7 @@ def test_search_by_wrong_extra_fields(self, test_env, splunk_logger, query_input
109109

110110
@pytest.mark.Critical
111111
@pytest.mark.parametrize("query_input", [
112-
"index={} cf_app_name=data_gen subscription-id::* event_type=LogMessage"
112+
"index={} cf_app_name=data_gen firehose-subscription-id::* event_type=LogMessage"
113113
])
114114
def test_fields_and_values_in_splunk_event(self, test_env, splunk_logger, query_input):
115115
self.splunk_api = SplunkApi(test_env, splunk_logger)
@@ -125,7 +125,7 @@ def test_fields_and_values_in_splunk_event(self, test_env, splunk_logger, query_
125125
'index': test_env['splunk_index'],
126126
'source': 'compute',
127127
'sourcetype': 'cf:logmessage',
128-
'subscription-id': 'splunk-ci'
128+
'firehose-subscription-id': 'splunk-ci'
129129
}
130130

131131
assert_json_contains(expect_content, last_event, "Event raw data results mismatch")

testing/integration/testcases/test_nozzle_configurations_local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_search_by_extra_fields(self, query_input, is_result_empty, test_env, sp
7171
@pytest.mark.Critical
7272
@pytest.mark.parametrize("query_input", [
7373
"index={0} test_tag::{1} nozzle-event-counter>0", # nozzle-event-counter should not be searchable
74-
"index={0} test_tag::{1} subscription-id::splunk-ci", # subscription-id should not be searchable
74+
"index={0} test_tag::{1} firehose-subscription-id::splunk-ci", # subscription-id should not be searchable
7575
"index={0} test_tag::{1} uuid::*" # uuid should not be searchable
7676
])
7777
def test_enable_event_tracing_is_false(self, test_env, query_input, splunk_logger):

tile/tile.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ forms:
2828
- name: splunk_host
2929
type: string
3030
label: HTTP Event Collector Endpoint URL
31-
description: Splunk HTTP Event Collector endpoint URL. It is required parameter.
31+
description: Splunk HTTP Event Collector endpoint URL. It is a required parameter.
3232
- name: splunk_token
3333
type: secret
3434
label: HTTP Event Collector Token
35-
description: Splunk HTTP Event Collector token. It is required parameter.
35+
description: Splunk HTTP Event Collector token. It is a required parameter.
3636
- name: skip_ssl_validation_splunk
3737
type: boolean
3838
label: Skip SSL Validation
@@ -41,12 +41,12 @@ forms:
4141
- name: splunk_index #It's a required parameter in config.go and doesn't have default, but here it has default value
4242
type: string
4343
label: Index
44-
description: The name of the Splunk index that events will be sent to. It is required parameter. WARNING:Setting an invalid index will cause events to be lost.
44+
description: The name of the Splunk index that events will be sent to. It is a required parameter. WARNING:Setting an invalid index will cause events to be lost.
4545
default: main
4646
- name: splunk_logging_index
4747
type: string
4848
label: Logging Index
49-
description: The name of the Splunk index where logging events will be sent to. When not provided, all logging events will be forwarded to the splunk_index. WARNING:Setting an invalid index will cause events to be lost.
49+
description: The name of the Splunk index where logging events will be sent to. When not provided, all logging events will be forwarded to the splunk_index. WARNING:Setting an invalid index will cause internal events to be lost.
5050
default: ""
5151
optional: true
5252

@@ -57,15 +57,15 @@ forms:
5757
- name: api_endpoint
5858
type: string
5959
label: API Endpoint
60-
description: Cloud Foundry API endpoint. It is required parameter.
60+
description: Cloud Foundry API endpoint. It is a required parameter.
6161
- name: client_id
6262
type: string
6363
label: Client ID
64-
description: CF UAA Client ID. It is required parameter.
64+
description: CF UAA Client ID. It is a required parameter.
6565
- name: client_secret
6666
type: secret
6767
label: Client Secret
68-
description: CF UAA Client Secret. It is required parameter.
68+
description: CF UAA Client Secret. It is a required parameter.
6969
- name: skip_ssl_validation_cf
7070
type: boolean
7171
label: Skip SSL Validation
@@ -102,7 +102,7 @@ forms:
102102
- name: scale_out_nozzle
103103
type: integer
104104
label: Scale Out Nozzle
105-
description: Adds more Splunk nozzle components to spread the load. Recommendation:Run 2 or more nozzles for high availability.
105+
description: Adds more Splunk nozzle instances to spread the load. Recommendation:Run 2 or more nozzles for high availability.
106106
default: 2
107107
- name: firehose_subscription_id
108108
type: string
@@ -160,7 +160,7 @@ forms:
160160
type: string
161161
label: Status Monitor Interval
162162
default: 0s
163-
description: Time interval (in s/m/h. For example, 3600s or 60m or 1h) for Enabling Monitoring - metric data of insights with in the connectors. (Increases CPU load. Use for insights purposes only) Default is 0s (Disabled).
163+
description: Time interval (in s/m/h. For example, 3600s or 60m or 1h) to enable monitoring of metric data within the connector. (This increases CPU load and should be used only for insights purposes. Default:0s)
164164
- name: flush_interval
165165
type: string
166166
label: Flush Interval
@@ -180,7 +180,7 @@ forms:
180180
type: string
181181
label: Org Space Cache Invalidate TTL
182182
default: 72h
183-
description: Time interval (in s/m/h. For example, 3600s or 60m or 1h) between refreshing the organization and space cache. Defaults to 72h.
183+
description: Time interval (in s/m/h. For example, 3600s or 60m or 1h) between refreshing the organization and space cache. (Default:72h)
184184
- name: app_limits
185185
type: integer
186186
label: App Limits
@@ -189,7 +189,7 @@ forms:
189189
- name: nozzle_memory
190190
type: string
191191
label: Nozzle Memory
192-
description: Nozzle memory in MB. Default is 256 MB.
192+
description: Nozzle memory in MB. (Default:256M)
193193
default: 256M
194194
- name: firehose_keep_alive
195195
type: string
@@ -277,7 +277,7 @@ forms:
277277
type: integer
278278
label: Memory Ballast Size
279279
default: 0
280-
description: Size of memory allocated to reduce GC cycles. Size should be less than the total memory. Default is 0.
280+
description: Size of memory allocated to reduce GC cycles. Size should be less than the total memory (Default:0).
281281

282282
migration: |
283283
if (typeof properties['properties']['.properties.add_app_info']['value'] == "boolean") {

0 commit comments

Comments
 (0)