Page 1 of 1

question about system requirenmebts

Posted: Fri Aug 28, 2015 11:53 am
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?

Re: question about system requirenmebts

Posted: Fri Aug 28, 2015 11:55 am
by tmcdonald
How many logs/sec are we talking?

Re: question about system requirenmebts

Posted: Fri Aug 28, 2015 1:53 pm
by benhank
526,278,171Documents
210.4GBPrimary Size
210.4GBTotal Size
1Data Instances
3072Total Shards
308Indices

Re: question about system requirenmebts

Posted: Fri Aug 28, 2015 2:08 pm
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.

Re: question about system requirenmebts

Posted: Fri Aug 28, 2015 2:11 pm
by benhank
thanks man

Re: question about system requirenmebts

Posted: Fri Aug 28, 2015 2:12 pm
by jolson
No problem - I edited the above post with some more detail. Are we good to close this post? :)

Re: question about system requirenmebts

Posted: Fri Aug 28, 2015 2:53 pm
by benhank
thanks! and closer it up sir!