Skip to content

search something relevant into a Service/subservice in Splunk #197

Open
AlvaroVega wants to merge 47 commits intomasterfrom
task/add_splunk_for_revelant_info
Open

search something relevant into a Service/subservice in Splunk #197
AlvaroVega wants to merge 47 commits intomasterfrom
task/add_splunk_for_revelant_info

Conversation

@AlvaroVega
Copy link
Copy Markdown
Member

@AlvaroVega AlvaroVega commented Mar 6, 2019

issue: #196

Search in Splunk using log patterns:

- srv=SERVICE_NAME
- subsrv=SUBSERVICE_NAME                     
- lvl=LOG_LEVEL
- comp=COMPONENT
- trans=CORRELATOR_ID
- corr=TRANSACTION_ID
- CUSTOM_TEXT
  • API
  • Docker support
  • Doc
  • Search by correlatorID
  • Search by transactionID
  • Check and limit results
  • Check invalid URls

Examples of usage:

curl -i -X GET http://localhost:8084/v1.0/service/80cc09886608474dbca6d07575d1a1db/relevant/Orion -H 'x-auth-token: 142afdf06f52422cb10fad6443a5a0d8'

curl -i -X GET http://localhost:8084/v1.0/service/80cc09886608474dbca6d07575d1a1db/relevant/cygnus-ngsi -H 'x-auth-token: 74c7ad35c3fe47ce903be5aeb1a994f5' -d '{ "LOG_LEVEL": "ERROR" }' -H 'content-type: application/json'

curl -i -X GET http://localhost:8084/v1.0/service/80cc09886608474dbca6d07575d1a1db/relevant/cygnus-ngsi -H 'x-auth-token: 74c7ad35c3fe47ce903be5aeb1a994f5' -d '{ "CORRELATOR_ID":"13123452asdfasd2342qwfawe424" }' -H 'content-type: application/json'

curl -i -X GET http://localhost:8084/v1.0/service/80cc09886608474dbca6d07575d1a1db/subservice/829ba886608474dbca6d07575dabc23456/relevant/cygnus-ngsi -H 'x-auth-token: 74c7ad35c3fe47ce903be5aeb1a994f5' -d '{ "CUSTOM_TEXT":"core dumped", "LOG_LEVEL": "ERROR" }' -H 'content-type: application/json'

@AlvaroVega AlvaroVega changed the title [WIP] add splunk handler add splunk handler Mar 7, 2019
@AlvaroVega AlvaroVega changed the title add splunk handler search something relevant into a Service/subservice in Splunk Mar 7, 2019
@AlvaroVega
Copy link
Copy Markdown
Member Author

To be merged with squash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant