Hi Team,
I am working on Log messages into Splunk using Apigee. In that I am using log over Http with service callout policy.
Initially I have created one token using Http Event collector in splunk and I have created one proxy in Apigee.
I have added service callout policy and wrote the following code with generated token in splunk.
<ServiceCallout name="Splunk-service">
<DisplayName>Splunk-service</DisplayName>
<Properties/>
<Request clearPayload="true" variable="myRequest">
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
<Set>
<Headers>
<Header name="Authorization">435A5164-9CCF-48F5-8EB3-ED06F80C0C30</Header>
</Headers>
<Payload contentType="application/json" variablePrefix="@" variableSuffix="#">
{"event":"Logged from EDGE"}
</Payload>
<Path>Sample</Path>
<Verb>POST</Verb>
</Set>
</Request>
<Response>calloutResponse</Response>
<HTTPTargetConnection>
<Properties/>
<URL>https://localhost:8088/</URL>
</HTTPTargetConnection>
</ServiceCallout>
When am trying to see the logs of this proxy in Splunk, it is showing an error like “no results to be found.”
Can any one suggest me where I am wrong.
Thanks in Advance.