Search found 18 matches
- Fri Oct 21, 2016 9:33 am
- Forum: Nagios Log Server
- Topic: Unique values in a field
- Replies: 4
- Views: 1116
Re: Unique values in a field
Thanks for the update. Looking forward to the next release that contains this feature. You can go ahead and lock this thread.
- Thu Oct 20, 2016 3:51 pm
- Forum: Nagios Log Server
- Topic: Unique values in a field
- Replies: 4
- Views: 1116
Re: Unique values in a field
Partial log file. 20/Oct/2016:04:02:18 uuid:eca88c67-16fd-47f4-81f7-18204f35f560 clientIP:203.166.320.2 20/Oct/2016:04:02:18 uuid:b2431f27-c683-418d-b600-93410de1691f clientIP:85.0.73.186 20/Oct/2016:04:02:19 uuid:a224384c-df07-4a6d-9968-ba330ba8a6fc clientIP:67.51.99.47 20/Oct/2016:04:02:24 uuid:29...
- Thu Oct 20, 2016 2:46 pm
- Forum: Nagios Log Server
- Topic: JSON files
- Replies: 18
- Views: 4689
Re: JSON files
Yes
- Thu Oct 20, 2016 2:09 pm
- Forum: Nagios Log Server
- Topic: JSON files
- Replies: 18
- Views: 4689
Re: JSON files
Both options worked for me. Only drawback with option 1 is that I can't see the original message in the dashboard.
Thanks for your help.
Thanks for your help.
- Thu Oct 20, 2016 9:37 am
- Forum: Nagios Log Server
- Topic: Unique values in a field
- Replies: 4
- Views: 1116
Unique values in a field
Is it possible to get total count of unique values in a field?
For example, I have a log the contains "clientIP:<IP_Address>". I can get how many times each IP address appears. What I am looking for is the total number of unique IP addresses.
For example, I have a log the contains "clientIP:<IP_Address>". I can get how many times each IP address appears. What I am looking for is the total number of unique IP addresses.
- Wed Oct 19, 2016 3:43 pm
- Forum: Nagios Log Server
- Topic: JSON files
- Replies: 18
- Views: 4689
Re: JSON files
I will try these options in a day or two and let you know the results.
- Tue Oct 18, 2016 11:08 am
- Forum: Nagios Log Server
- Topic: JSON files
- Replies: 18
- Views: 4689
Re: JSON files
ls -l /etc/rsyslog.d/ -rw-r--r-- 1 root root 736 Oct 18 16:02 90-nagioslogserver_var_tmp_logs_test.log.conf cat /etc/rsyslog.d/*.conf $ModLoad imfile $InputFilePollInterval 10 $PrivDropToGroup adm $WorkDirectory /var/lib/rsyslog # Input for import_json $InputFileName /var/tmp/logs/test.log $InputFi...
- Mon Oct 17, 2016 5:41 pm
- Forum: Nagios Log Server
- Topic: JSON files
- Replies: 18
- Views: 4689
Re: JSON files
Problem is not with importing the file into Nagios Log Server. After importing the file, Nagios Log Server is not applying the filters properly. If you take a closer look at your output, you would see "_jasonparsefailure" in tags. Following is the "nc" command and screenshot from...
- Mon Oct 17, 2016 10:52 am
- Forum: Nagios Log Server
- Topic: JSON files
- Replies: 18
- Views: 4689
Re: JSON files
This is what I have in test.log file. I am using NLS 1.4.2
Code: Select all
{"Var1":"Foo","Var2":"Bar","Var3":"Alpha","Var4":"Beta"}- Mon Oct 17, 2016 8:17 am
- Forum: Nagios Log Server
- Topic: JSON files
- Replies: 18
- Views: 4689
Re: JSON files
If I use netcat command, it works. nc -w 1 <nls_server> 2057 <<< `cat /var/tmp/logs/test.log` If I use "setup-linux.sh" command, I am getting "_jsonparsefailure" error. bash setup-linux.sh -s <nls_server> -p 2057 -f "/var/tmp/logs/test.log" -t import_json