question about system requirenmebts

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

question about system requirenmebts

Post by benhank »

Hey guys quick question:

I am scoping a NLS environment with the goal of maximizing performance and high availability.
I plan on setting up node that does not collect data, but ships the incoming logs off to the two worker nodes.

I know you guys hate answering this question but i have a :

Code: Select all

Quad core xeon @ 3.0 ghz
3 gigs of memory
That should suffice for a machine that is just passing off the logs to my worker machines right?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: question about system requirenmebts

Post by tmcdonald »

How many logs/sec are we talking?
Former Nagios employee
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: question about system requirenmebts

Post by benhank »

526,278,171Documents
210.4GBPrimary Size
210.4GBTotal Size
1Data Instances
3072Total Shards
308Indices
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: question about system requirenmebts

Post by jolson »

While you can setup Nagios Log Server to be geographically distant from other instances, it is not recommended to do so. This would not fit your requirement anyway - as there is no way to stand up a Nagios Log Server box and have it *not* collect data.

In theory, you *could* make this work by using the following procedure:
1. Stand up a Nagios Log Server box at the remote site. DO NOT connect it to your existing cluster.
2. Get your license installed and default configuration done.
3. Configure Logstash via the Web GUI as appropriate.
4. Shut down elasticsearch and stop it from starting up on boot.
Logstash will die at this point.
5. Manually edit the /usr/local/nagioslogserver/logstash/etc/conf.d/999_outputs.conf file to look something like this:

Code: Select all

tcp {
    host => ...
    port => ...
}
6. On your actual cluster, receive all of the inbound data on a tcp port via logstash.

You could make multiple input/output definitions as required (though you would do this on the command line instead of the GUI).
For example:

Code: Select all

cat /usr/local/nagioslogserver/logstash/etc/conf.d/000_inputs.conf

Code: Select all

input {
    tcp {
        type => 'import_json'
        tags => 'import_json'
        port => 2057
        codec => json
    }
    tcp {
        type => 'import_raw'
        tags => 'import_raw'
        port => 2056
    }
}

Code: Select all

cat /usr/local/nagioslogserver/logstash/etc/conf.d/999_outputs.conf

Code: Select all

output {
if [type] == 'import_json' {
tcp {
    host => 192.168.1.1
    port => 6666
}
}
if [type] == 'import_raw' {
tcp {
    host => 192.168.1.1
    port => 7777
}
}
}
In theory, the above procedure would work. Logstash would be acting as a relay - taking basic data in and sending basic data via TCP to your actual cluster. I have not attempted to set this up, but it is a feasible option.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: question about system requirenmebts

Post by benhank »

thanks man
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: question about system requirenmebts

Post by jolson »

No problem - I edited the above post with some more detail. Are we good to close this post? :)
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: question about system requirenmebts

Post by benhank »

thanks! and closer it up sir!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked