Hello, I've set ELK and want apigee to send log to my server.
my server has 2 environment with different name.
ex. dev-log , log
how do i set my <host> attribute in logging policy to complete this since <host> can not use variable and i have no idea how to work around it.
You could create 2 policies and execute them conditionally.
<PostClientFlow name="PostClientFlow"> <Request/> <Response> <Step> <Condition>environment.name = "test"</Condition> <Name>ML-test</Name> </Step> <Step> <Condition>environment.name = "prod"</Condition> <Name>ML-prod</Name> </Step> </Response> </PostClientFlow>