Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 47 commits into
base: master
Choose a base branch
from

Conversation

AlvaroVega
Copy link
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
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