Logscape Support

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: New to Logscape - Questions


Member

Status: Offline
Posts: 5
Date:
New to Logscape - Questions
Permalink  
 


I want to test out logscape to monitor Web servers using nginx/haproxy and tomcat.  I have downloaded and deployed the applications and setup the servers are forwarders, but I'm not able to show any data.  I was looking at the documentation and it says the following  but I'm not sure where the override.properties needs to go.  This will provide HAproxy information, but what about nginx?

 

It currently seems like I'm only able to produce syslog information.  I can provide anything that's needed.

 

Thanks

 

Configure

Download the sample override file and set NGINX_HA_SOCKET to point to HAproxies admin socket. iue stats for the HAProxy are provided there.

NGINX_HA_SOCKET=/opt/docker/integrations/nginx/hap0/ruin/haproxy/admin.sock
bundle.defaults.resourceSelection=hostName containsAny WebFarmAgent


__________________


Member

Status: Offline
Posts: 5
Date:
Permalink  
 

If there is documentation that I'm missing please just point me in the right direction.

Thank you.

__________________


Veteran Member

Status: Offline
Posts: 41
Date:
Permalink  
 

1. For monitoring an Apache Server, check out the ApacheApp - it will give you some Workspaces and data types to start dealing with your Apache Logs without you needing to type them yourself. 

2. The Override.properties file should be deployed into the Logscape environment as well as the App. Those variables will then be available for the scripts generating the app data. It's important that you specify in the Override.properties which hosts the services should run on, for example to hit all Linux Hosts use:
bundle.defaults.resourceSelection=osName contains Linux



__________________

Excelian - GitHub



Member

Status: Offline
Posts: 5
Date:
Permalink  
 

Istair,
Thank you for the reply, I currently do not use Apache server, but nginx, I will however look at the ApacheApp.

Thank you for the bundle.defaults.resourcesSelection information, that is very helpful and probably why its not working for me.

When you have more than one OS do you create multiple bundle.def... or do you just add multiple hostnames?

Thank again

parman

__________________


Veteran Member

Status: Offline
Posts: 41
Date:
Permalink  
 

Here are some examples that might work:

To run the script on all hosts, you'd use the following

bundle.defaults.resourceSelection=id = 0

To run them on hosts with the AgentId NIGHTWING and NIGHTHAWK but not BLACKHAWK

bundle.defaults.resourceSelection=agentId containsAny NIGHT

It uses the same logic as the Query box on the Agents page of the Configure menu - if you can find a query that works there, it'll work in that selection.

__________________

Excelian - GitHub



Member

Status: Offline
Posts: 5
Date:
Permalink  
 

When you say AgentID what exactly are you referring too?

__________________


Member

Status: Offline
Posts: 5
Date:
Permalink  
 

In one of your other post you said, "The AgentId is a combination of the hostname and the port used to connect to the manager - it's not configurable as such, it's descriptive.

If you want to change it, you'll need to change your computers hostname. This link may help. windows.microsoft.com/en-us/windows/change-computer-name
However, if you're on a business network, you won't want to do that. What you can configure is the role. The Role allows you to segregate your data and identify the computers used.

Check out the documentation on Zoning. logscape.github.io/deploy-arch_zoning.html"

Does this mean that the you just need to put the hostname or something thats in all the hostnames?

__________________


Veteran Member

Status: Offline
Posts: 41
Date:
Permalink  
 

The AgentId is indeed a combination of those things - the hostname comes from the system information.

You need to target your resource selection to include all hosts running NGINX (if it's the NGINX App).

You can also comma separate with contains any, so for example:

bundle.defaults.resourceSelection=agentId containsAny HOSTNAME1,HOSTNAME2,HOSTNAME3



__________________

Excelian - GitHub

Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard