-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Citrix ADC] Add Integration Package with Service Data Stream #4364
Merged
kush-elastic
merged 10 commits into
elastic:main
from
harnish-crest:package_citrix_adc_service
Nov 22, 2022
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e5a287d
Add service data stream
harnish-crest be63450
update changelog.yml and codeowner
harnish-crest 2400afb
minor change in description
harnish-crest fb2b44b
update field mapping and provide tooltip to user
harnish-crest e52d389
minor changes in README.md
harnish-crest c408b30
update and add dashboard
harnish-crest addbc8f
update image
harnish-crest e9be94d
Update visualization titles and screenshot
harnish-crest d37b547
Merge branch 'main' of https://github.com/harnish-crest/integrations …
harnish-crest e83aaf9
resolve merge conflicts
harnish-crest File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/citrix_adc/data_stream/service/_dev/test/pipeline/test-common-config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fields: | ||
tags: | ||
- preserve_original_event |
1 change: 1 addition & 0 deletions
1
packages/citrix_adc/data_stream/service/_dev/test/pipeline/test-service-metrics.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"nshttpd-gui-127.0.0.1-80","throughput":"0","throughputrate":0,"avgsvrttfb":"17","primaryipaddress":"127.0.0.1","primaryport":80,"servicetype":"HTTP","state":"UP","totalrequests":"12578","requestsrate":0,"totalresponses":"12578","responsesrate":0,"totalrequestbytes":"7091409","requestbytesrate":69,"totalresponsebytes":"23688619","responsebytesrate":151,"curclntconnections":"5","surgecount":"0","cursrvrconnections":"1","svrestablishedconn":"1","curreusepool":"1","maxclients":"0","curload":"0","totalconnreassemblyqueue75":"0","totalconnreassemblyqueueflush":"0","httpmaxhdrszpkts":"0","httpmaxhdrfldlenpkts":"0","tcpmaxooopkts":"0","curtflags":"0","totsvrttlbtransactions":"0","toleratingttlbtransactions":"0","frustratingttlbtransactions":"0","vsvrservicehits":"0","vsvrservicehitsrate":0,"activetransactions":"0","serviceorder":"0"} |
93 changes: 93 additions & 0 deletions
93
.../citrix_adc/data_stream/service/_dev/test/pipeline/test-service-metrics.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"expected": [ | ||
{ | ||
"citrix_adc": { | ||
"service": { | ||
"client_connection": { | ||
"count": 5.0 | ||
}, | ||
"primary": { | ||
"ip_address": "127.0.0.1", | ||
"port": 80 | ||
}, | ||
"request": { | ||
"bytes": { | ||
"rate": 69, | ||
"value": 7091409.0 | ||
}, | ||
"count": 12578.0, | ||
"rate": 0 | ||
}, | ||
"response": { | ||
"bytes": { | ||
"rate": 151, | ||
"value": 2.368862E7 | ||
}, | ||
"count": 12578.0, | ||
"rate": 0 | ||
}, | ||
"reuse_pool": 1.0, | ||
"server": { | ||
"connection": { | ||
"count": 1.0, | ||
"established": { | ||
"count": 1.0 | ||
} | ||
}, | ||
"time_to_first_byte": { | ||
"avg": 17.0 | ||
} | ||
}, | ||
"surge_queue": { | ||
"count": 0.0 | ||
}, | ||
"throughput": { | ||
"rate": 0, | ||
"value": 0.0 | ||
}, | ||
"transaction": { | ||
"active": { | ||
"count": 0.0 | ||
}, | ||
"frustrating": { | ||
"count": 0.0 | ||
}, | ||
"time_to_last_byte": { | ||
"count": 0.0 | ||
}, | ||
"tolerable": { | ||
"count": 0.0 | ||
} | ||
} | ||
} | ||
}, | ||
"ecs": { | ||
"version": "8.4.0" | ||
}, | ||
"event": { | ||
"category": [ | ||
"web" | ||
], | ||
"kind": "event", | ||
"module": "citrix_adc", | ||
"original": "{\"name\":\"nshttpd-gui-127.0.0.1-80\",\"throughput\":\"0\",\"throughputrate\":0,\"avgsvrttfb\":\"17\",\"primaryipaddress\":\"127.0.0.1\",\"primaryport\":80,\"servicetype\":\"HTTP\",\"state\":\"UP\",\"totalrequests\":\"12578\",\"requestsrate\":0,\"totalresponses\":\"12578\",\"responsesrate\":0,\"totalrequestbytes\":\"7091409\",\"requestbytesrate\":69,\"totalresponsebytes\":\"23688619\",\"responsebytesrate\":151,\"curclntconnections\":\"5\",\"surgecount\":\"0\",\"cursrvrconnections\":\"1\",\"svrestablishedconn\":\"1\",\"curreusepool\":\"1\",\"maxclients\":\"0\",\"curload\":\"0\",\"totalconnreassemblyqueue75\":\"0\",\"totalconnreassemblyqueueflush\":\"0\",\"httpmaxhdrszpkts\":\"0\",\"httpmaxhdrfldlenpkts\":\"0\",\"tcpmaxooopkts\":\"0\",\"curtflags\":\"0\",\"totsvrttlbtransactions\":\"0\",\"toleratingttlbtransactions\":\"0\",\"frustratingttlbtransactions\":\"0\",\"vsvrservicehits\":\"0\",\"vsvrservicehitsrate\":0,\"activetransactions\":\"0\",\"serviceorder\":\"0\"}", | ||
"type": [ | ||
"info" | ||
] | ||
}, | ||
"related": { | ||
"ip": [ | ||
"127.0.0.1" | ||
] | ||
}, | ||
"service": { | ||
"name": "nshttpd-gui-127.0.0.1-80", | ||
"state": "UP", | ||
"type": "HTTP" | ||
}, | ||
"tags": [ | ||
"preserve_original_event" | ||
] | ||
} | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/citrix_adc/data_stream/service/_dev/test/system/test-default-config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
input: httpjson | ||
service: citrix_adc | ||
vars: | ||
hostname: http://{{Hostname}}:{{Port}} | ||
username: nsroot | ||
password: nsroot | ||
data_stream: | ||
vars: | ||
preserve_original_event: true |
29 changes: 29 additions & 0 deletions
29
packages/citrix_adc/data_stream/service/agent/stream/stream.yml.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
config_version: 2 | ||
interval: {{period}} | ||
request.url: {{hostname}}/nitro/v1/stat/service | ||
request.method: GET | ||
{{#if username}} | ||
{{#if password}} | ||
auth.basic.user: {{username}} | ||
auth.basic.password: {{password}} | ||
{{/if}} | ||
{{/if}} | ||
response.split: | ||
target: body.service | ||
{{#if ssl}} | ||
request.ssl: {{ssl}} | ||
{{/if}} | ||
tags: | ||
{{#if preserve_original_event}} | ||
- preserve_original_event | ||
{{/if}} | ||
{{#each tags as |tag|}} | ||
- {{tag}} | ||
{{/each}} | ||
{{#contains "forwarded" tags}} | ||
publisher_pipeline.disable_host: true | ||
{{/contains}} | ||
{{#if processors}} | ||
processors: | ||
{{processors}} | ||
{{/if}} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be
metrics-*
and notlogs-*
index pattern.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are using
httpjson
filebeat input. So user can see all the indices inlogs-*
format in KibanaDiscover
.