Docs > Deployment & Installation > On-Prem Deployment & Installation > Deployment on Existing Kubernetes Cluster
1. Getting Started with vuSmartMaps™
3. Console
5. Configuration
6. Data Management
9. Monitoring and Managing vuSmartMaps™
Logbeat is a lightweight shipper for forwarding and centralizing log data. Installed as an agent on servers, Logbeat monitors the log files or locations that you specify, collects log events, and forwards them to the configured destination (Shipper).
PowerShell with admin access.
.\install-service-logbeat.ps1
Note:
If you get a script execution error while running the installer, rerun using an unrestricted execution policy:
PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-logbeat.ps1
(OR)
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass .\install-service-logbeat.ps1
C:\Users\USER\ – The installation script will create Logbeat directory inside C:\Users\USER\
C:\Users\USER\agents – The installation script will create Logbeat directory inside C:\Users\USER\agents
If the directory exists, press enter or y to continue installation on the same directory, or else you can exit wizards by pressing n.
Note: A general assumption is agents are installed with the knowledge of the exact collection method and listening port setup at the vuSmartMaps end. If this information is not yet known, contact Vunet support.
(AGENT_HOME)\logbeat.yml
and
(AGENT_HOME)\inputs.d\*.yml
#----------------------------- Logstash output --------------------------------
output.logstash:
# The Logstash hosts
hosts: [“127.0.0.1:5050”]
# Optional SSL. By default it is off.
# List of root certificates for HTTPS server verifications
#ssl.certificate_authorities: [“/etc/pki/root/ca.pem”]
# Certificate for SSL client authentication
#ssl.certificate: “/etc/pki/client/cert.pem”
# Client Certificate Key
#ssl.key: “/etc/pki/client/cert.key”
The kafka output can be enabled by uncommenting the "output.kafka" setting. Following are the configurations in the kafka output block.
#—————————– Kafka output ——————————–
output.kafka:
#initial brokers for reading cluster metadata
hosts: [“127.0.0.1:9092”]
###message topic selection + partitioning
topic: ‘logbeat-server’
required_acks: 1
compression: gzip
max_message_bytes: 100000
channel_buffer_size: 100000
The logging block is towards the end of the configuration where log level, log path and rotation policy can be specified.
#================================ Logging =====================================
# Set log level. The default log level is info.
# Available log levels are: critical, error, warning, info, debug
logging.level: debug
# At debug level, you can selectively enable logging only for some components.
# To enable all selectors use [“*”]. Examples of other selectors are “beat”,
# “publish”, “service”.
#logging.selectors: [“*”]
logging.to_files: true
logging.files:
path: C:\Users\USER\logbeat\logs
name: logbeat
keepfiles: 5
permissions: 0644
(AGENT_HOME)\configure_logs.ps1
Note: If you get a script execution error while running the installer, rerun using an unrestricted execution policy:
PowerShell.exe -ExecutionPolicy UnRestricted -File .\configure_logs.ps1
- type: log
enabled: true
paths:
– C:\Windows\System32\config\SYSTEM
fields_under_root: true
fields:
document_type: log
type: syslog
– type: log
enabled: true
paths:
– C:\iis\iis*log
– C:\Users\USER\logbeat\logs\logbeat*
ignore_older: 1h
fields_under_root: true
fields:
document_type: log
type: beat
location: Bangalore
– type: log
enabled: true
paths:
– C:\Windows\System32\config\SYSTEM
multiline.type: pattern
multiline.pattern: ^[
multiline.negate: true
multiline.match: after
fields_under_root: true
fields:
document_type: log
type: syslog
– type: log
enabled: true
paths:
– C:\Users\USER\apache\apache-access*
– C:\Users\USER\apache\apache-error*
ignore_older: 8h
multiline.type: pattern
multiline.pattern: ^info
multiline.negate: true
multiline.match: after
fields_under_root: true
fields:
document_type: log
type: apache
location: BLR
vuSmartMaps uses 9094 for TLS and 9092 for plaintext communication from agent to broker.
To use encrypted communication with Kafka broker, the following steps should be performed.
For one-way SSL encryption, i.e. server authentication by the client, only one property needs to be added to the outputs.kafka section, i.e. certificate_authorities. This refers to the Root CA of the certificate used by the broker. In default vuSmartMaps installation, the broker is set up with a certificate signed by custom Root CA and this CA certificate is pre-packaged with the agent truststore. However, in case of a requirement to use your organization certificates, they have to be used during the install time of kafka broker while deploying vuSmartMaps and should also be added to agent truststore manually post agent installation.
ssl.certificate_authorities:["(path-to-client-truststore (.pem))"]
The certificate and key properties are required for client authentication. If client authentication is not required, no need to specify these properties.
ssl.certificate: "(path-to-client-certificate (.pem))"
ssl.key: "(path-to-client-key (.key))"
#If implementing only 1-way SSL
ssl.verification_mode: "none"
The server may be running a valid CA signed certificate or a self-signed certificate depending on the installation. In case CA signed certificate being used by the server, the client trust store must have the CA root certificate of the signing authority on its trust store. If a self-signed certificate is used by the server, the server certificate itself should be added to the trust store of the client.
Please note the agent uses PEM format for certificate_authorities.
net start logbeat
net stop logbeat
get-service logbeat
(AGENT_HOME)\logs\logbeat-*.ndjson
Log files are written as newline delimited JSON.
(AGENT_HOME)\logbeat.exe -c "(AGENT_HOME)\logbeat.yml" -e -d "*"
To uninstall the Logbeat service, run uninstall-service-logbeat.ps1 script located at (AGENT_HOME)\logbeat directory as follows:
.\uninstall-service-logbeat.ps1
Note: If you get a script execution error while running the uninstaller, rerun using an unrestricted execution policy:
PowerShell.exe -ExecutionPolicy UnRestricted -File .\uninstall-service-logbeat.ps1
Uninstallation is now complete.
Browse through our resources to learn how you can accelerate digital transformation within your organisation.
VuNet’s Business-Centric Observability platform, vuSmartMaps™ seamlessly links IT performance to business metrics and business journey performance. It empowers SRE and IT Ops teams to improve service success rates and transaction response times, while simultaneously providing business teams with critical, real-time insights. This enables faster incident detection and response.