I'm in the situation to setup an elastic agent to retrieve logs with custom integration from a directory e.g.
d:\Logs\MyApp_Staging\*.log on machine
and on machine
B. So I have created an agent policy with name
myapp-staging and assign the agent
B to it and create a custom log integration with name
logs-myapp-staging. Now I want to setup another application and collect the logs from
d:\Logs\AnotherApp_Testing\*.log on machine
C. Normally I would say to create a new agent policy with name
anotherapp-testing, assign the agent
C to it and create a custom log integration with name
logs-anotherapp-testing. But this is not working because you cannot assign more than one agent policies to an agent. Installing a new agent on the same machine is also not possible.
How would you handle this scenario?