You can set up log collector(s) in both the VM and JA2500 appliance. You can configure log collector as an All-in-One node for small-scale deployments. For easy scaling, begin with a single Log Receiver node and Log Storage node, and incrementally add Log Storage nodes as your needs expand. You can add a maximum of one Log Receiver node and three Log Storage nodes.
For a VM environment, a single OVA image is used to deploy the All-in-One, Log Receiver, and Log Storage nodes. The image presents a configuration script after you log in. At deployment, you must select the memory and CPU configuration values, as is appropriate for the role of the VM.
For JA2500 deployments, a single ISO image is used to install the All-in-One, Log Receiver, and Log Storage nodes. The image presents a configuration script after you log in.
To use the Junos Space Security Director Logging and Reporting module, your system must meet the following prerequisites:
You can use Table 231 and Table 232 to decide if you require a single Log Collector or multiple Log Collectors.
Table 231 and Table 232 provide the VM configuration recommended for the log collection to work effectively. It lists the required specifications for deploying a Log Collector VM on an ESX server for various sustained events-per-second (eps) rates. The eps rates shown in table were achieved in a testing environment. Your results might differ, depending on your configuration and network environment.
Table 231: Using Solid State Drives (SSD)
Setup | Log Receiver Node | Log Storage Node | Total Nodes | ||||
---|---|---|---|---|---|---|---|
Number of Nodes | CPU | Memory | Number of Nodes | CPU | Memory | ||
4K eps | 1 | 4 | 16 GB | - | - | - | 1 |
10K eps | 1 | 8 | 32 GB | 1 | 8 | 64 GB | 2 |
20K eps | 1 | 8 | 32 GB | 2 | 8 | 64 GB | 3 |
Table 232: Using Non-Solid State Drives (SSD)
Setup | Log Receiver Node | Log Storage Node | Total Nodes | ||||
---|---|---|---|---|---|---|---|
Number of Nodes | CPU | Memory | Number of Nodes | CPU | Memory | ||
3K eps | 1 | 4 | 16 GB | - | - | - | 1 |
10K eps | 1 | 8 | 32 GB | 2 | 8 | 64 GB | 3 |
20K eps | 1 | 8 | 32 GB | 3 | 8 | 64 GB | 4 |
Note: VMs with 64GB memory gives better stability for the log collection.
Table 233 shows different node types in which the Log Collector can be deployed.
Table 233: Log Collector Deployment Nodes
Node Type | Description |
---|---|
All-in-One Node (Combined deployment) |
|
Log Receiver Node (Distributed deployment) | This node receives system logs from SRX devices. SRX devices must be configured with the log receiver node IP to send system logs. Upon configuration this node parses and forwards logs to log storage node. You must provide the IP address of the log storage node while configuring this node. |
Log Storage Node (Distributed deployment) | This node analyzes, indexes, and stores the system logs. It receives the system logs from log receiver node. |
Integrated | It is installed on Space node itself and it works as both the Log Receiver node and Log Storage node, similar to an All-in-one node. |
Note: Using vSphere Client version 5.5 and previous versions, you cannot edit the settings of virtual machines of version 10 or later versions. For more details, see VMware Knowledge Base.
Note: You can only configure the IP address of all Log Collector nodes by using the configuration script. If an IP address is configured manually, the Log Collector node cannot be added to Security Director.
The total storage required for retaining X number of days at a given eps rate is:
eps * 0.155 * X = (in GB)
For example, the storage requirement for 7 days at 500 eps is 500 * 0.155 * 7 = 542 GB, with a +20% margin. The storage space is allocated and equally distributed to the log storage nodes.
Note: The logs get rolled over under the following scenarios:
An All-in-One node acts both as a Log Receiver and Log Storage node. For a VM environment, a single OVA image is used to deploy the All-in-One, Log Receiver, and Log Storage nodes. The image presents a configuration script after you log in and you must select All-in-One to configure the node. For JA2500 deployments, a single ISO image is used to install the All-in-One, Log Receiver, and Log Storage nodes. During setup, you can configure the node as an All-in-One node.
Figure 42 shows the deployment example using an All-in-One node.
Figure 42: Using an All-in-One Node
If you have a scenario where you require more log reception capacity or eps, you can add multiple logging nodes. Multiple logging nodes provide higher rates of logging and better query performance. You can add a maximum of one Log Receiver node and three Log Storage nodes.
For a VM environment, a single OVA image is used to deploy a Log Receiver node and a Log Storage node. The image presents a configuration script after you log in. During setup, you can configure the node as either a Log Receiver or Log Storage. At deployment, the user must select the memory and CPU configuration values, as is appropriate for the role of the VM or appliance.
For JA2500 deployments, a single ISO image is used to install the Log Receiver and Log Storage nodes. During setup, you can configure the node as either a Log Receiver or a Log Storage node.
The use of multiple logging nodes provide the following benefits:
Figure 43 shows the deployment example using multiple node for up to 10K eps.
Figure 43: Using Multiple Node for up to 10K eps
Figure 44 shows the deployment example using multiple node for greater than 10K eps.
Figure 44: Using Multiple Node for Greater than 10K eps
To deploy the Log Collector on an ESX Server:
Note: Log Collector VM contains a Virtual Appliance Management Infrastructure (VAMI) agent. The agent allows the VM to use the configuration from the ESX server based on the server configuration.
A configuration script lets you choose the node type and configure the network settings.
Starting with Security Director Release 15.2R2, you can deploy Log Collector on a kernel-based virtual machine (KVM) server installed on CentOS Release 6.5.
Prerequisites
The prerequisites to deploy a Log Collector on a KVM server are as follows:
Note: You can deploy the Log Collector virtual appliance on a KVM sever by using other virtual machine clients other than VMM. However, Juniper Networks does not provide support for installing the Junos Space virtual appliance using clients other than VMM.
To deploy Log Collector VM on a KVM server:
system.qcow2
and data.qcow2
files.The new VM dialog box appears and displays Steps 4 to 8.
system.qcow2
file.data.qcow2
file.qcow2
under Advanced Options.To install the Log Collector on the JA2500 appliance using a USB flash drive, you must create a bootable USB flash drive, install the Log Collector node using the USB flash drive, and add the Log Collector node to Security Director.
Create a Bootable USB Flash Drive
Before creating a bootable USB flash drive, download and install Rufus software on your system.
The Rufus window opens.
A progress bar on the Rufus page indicates the status of the bootable USB flash drive creation. A success message is displayed once the process completes successfully.
If you are using a computer with Linux as the operating system, do the following:
Note: While you can use any of the available tools, it is recommended to use the dd command in Linux to create a bootable USB drive.
Log-Collector-version.spin-number.img is the name of the downloaded Junos Space image file, and /dev/usb-drive is the name of the device drive to which your USB drive is mapped. The image file is copied to the USB drive and you are taken to the command prompt.
Install Log Collector Using USB Flash Drive
Note: Typically, the Backspace key is mapped to send the DEL character.
If USB KEY: CBM USB 2.0 - (USB 2.0) is not at the top of the list, perform the following steps:
Add Log Collector Node to Security Director.
The prerequisites to install the integrated log collector on a JA2500 appliance or virtual machine (VM) are as follows:
Note: Security Director Logging and Reporting is not supported on JA1500 appliance.
Specifications
Table 234 shows the specifications for installing the integrated Log Collector on JA2500 appliance.
Table 234: Specifications for Installing an Integrated Log Collector on a JA2500
Component | Specification |
---|---|
Memory | 8 GB Log Collector uses 8 GB of memory of the available 32-GB system RAM. |
Disk space | 500 GB This is used from the existing JA2500 appliance disk space. |
CPU | Single core |
Note: These specifications are used internally by the integrated Log Collector on a JA2500 appliance.
Table 235 shows the specifications for installing the integrated Log Collector on Junos Space Virtual Appliance.
Table 235: Specifications for Installing an Integrated Log Collector on a VM
Component | Specification |
---|---|
Memory | 8 GB If the Integrated Log Collector is running on the Junos Space VM, we recommend adding 8 GB of RAM to maintain the Junos Space performance. It uses 8 GB of system RAM from the total system RAM. |
Disk space | 500 GB Minimum 500 GB is required. You can add any amount of disk space. |
CPU | 2 CPUs of 3.20 GHz |
Note: These specifications are used internally by the integrated Log Collector running on the Junos Space Virtual Appliance.
To install the integrated Log Collector on a JA2500 appliance or Virtual Appliance:
[root@space-005056b40fef ~]# sh Integrated-Log-Collector-16.2.R1.xxx.sh ERROR: Insufficient HDD size, Please upgrade the VM HDD size to minimum 500 GB to install Log Collector
To expand the hard disk size for Space VM:
Note: Junos Space Network Management platform must be active and functioning. You must be able to log into the Junos Space Network Management Platform and Security Director user interfaces before attempting to run the integrated Log Collector setup script again.
[root@space-005056b41440 ~]# sh Integrated-Log-Collector-16.2.R1.157.sh ERROR: Opennms is running... Please try to disable opennms as described below or in document and retry Log Collector installation... STEPS: Login to Network Management Platform --> Administration --> Applications Right Click on Network Management Platform --> Manage Services -> Select Network Monitoring and click Stop Service Status should turn to Disabled
After OpenNMS is disabled, run the sh Integrated-Log-Collector-16.2.R1.xxx.sh command.
When integrated Log Collector installation is complete on the JA2500 appliance or VM, the following message is displayed:
Shutting down system logger: [ OK ]
Starting jingest ... jingest started.
{"log-collector-node": {"id":376,"ip-address":"x.x.x.x","priority":0,"node-type":
"INTEGRATED","cpu-usage":0,"memory-usage":0, "fabric-id":0,"display-name": "Integrated","timestamp":0}}
Once the installation is complete, a logging node is automatically added in Administration > Logging Management > Logging Nodes.
Once Log Collector is configured, you can add it to Security Director.
To add Log Collector to Security Director, see Adding Logging Nodes.
To learn more about increasing the disk size of your VM when log files are too large, see Expanding the Size of the VM Disk for Log Collector.
To learn more about enabling vMotion and Fault tolerance logging, see Enabling vMotion and Fault tolerance logging.
To learn more about VMWare chassis cluster and fault tolerance, see vSphere Availability.
To learn more about configuring vMotion, see Creating a VMkernel port and enabling vMotion on an ESXi/ESX host and Set Up a Cluster for vMotion.