Ask questions. Get answers. Find technical product solutions from passionate experts in the NXLog community.

How can I collect Active Directory Domain Service events and DNS events with Nxlog?
My problem is I cannot collect ADDS or DNS events with Nxlog and send them to an ELK server. In the Nxlog config for the DC and DNS server I have the following Query <QueryList>\ <Query Id="0">\ <Select Path="Security">*</Select>\ <Suppress Path="Security">*[System[(EventID=4624 or EventID=4776 or EventID=4634 or EventID=4672 or EventID=4688 or EventID=4769)]]</Suppress>\ <Select Path="System">*[System/Level=2]</Select>\ <Select Path="Microsoft-Windows-ActiveDirectory_DomainService">*</Select>\ <Select Path="Microsoft-Windows-DNS-Server-Service">*</Select>\ </Query>\ </QueryList> The config file works correctly without the Active Directory and DNS paths. The desired Security and System logs go to ELK correctly. I have also tried leaving only the ADDS or DNS paths in the config file with no luck. I don't think I have the correct paths for ADDS and DNS in the config and that is my problem. My Google-fu and Bing-fu hasn't found any results giving me the Event ID channel for ADDS and DNS events. I've only found the Event ID channels for Application, Security, System, and Setup. Any suggestions? I'm up for any! The DC\DNS server and the ELK server are running on Windows Server 2012. ELK install is running the latest stable releases of ELK. Thanks!

artvandelay05 created
Replies: 1
View post »
last updated
using im_msvistalog to read fron .evtx files directly
I am trying out the enterprise edition, and could not find documentation for reading event logs directly from .evtx file only, can anyone help in a sample config.

okamalo created
Replies: 1
View post »
last updated
Own module compilation failed at configure
Hello I don't know way to compile my input module for Oracle - need some guidance for it. I guess autogen.sh (using autotools) is designated to generate makefiles etc and configure. I made Makefile.am based on im_dbi version: if HAVE_LIBOCI im_oci_LTLIBRARIES    = im_oci.la im_oci_la_SOURCES    = im_oci.c im_oci.h im_oci_la_CFLAGS    = -rdynamic -D_XOPEN_SOURCE -std=c99 im_oci_la_LDFLAGS    = -module -no-undefined -avoid-version -ldl im_oci_la_LIBADD    = $(LIBOCI) $(LIBNX) im_ocidir        = $(NX_MODULEDIR)/input endif When I call configure or autogen.sh it gives error: ./configure: line 21597: syntax error: unexpected end of file but last lines are:   21590: #echo ---------------------------------------------------------- 21591: #echo Shared: ${BUILD_SHARED_LIBS} 21592: #echo ---------------------------------------------------------- 21593: echo 21594: echo "${PACKAGE}-${NXLOG_VERSION_STRING} configured successfully" 21595: echo "type \`${MAKE-make}' and \`${MAKE-make} install'" 21596: echo 21597: echo 21598: I don't see error here. I just placed my module in modules/input folder Should I generate some files with autotools?

Tuxizm created
Replies: 1
View post »
last updated
Graylog Level Invalid [-1]
Hi guys,   I need help about NXlog with graylog, on my 2008 server my nxlog send correctly log to my graylog server but i cant see lvl and facility off all logs :-(. like : facility : Unknown and level Invalid [-1] plz see my nxlog config :  <Extension gelf> Module xm_gelf </Extension>    <Extension syslog>     Module    xm_syslog </Extension> <Input eventlog> Module im_msvistalog # this kinda works for me, put * to get everything Query <QueryList>\ <Query Id="0">\ <Select Path='Application'>*[Application/Level=2][Application/Level=3][Application/Level=1]</Select>\ <Select Path='System'>*[system/Level=2][system/Level=3][system/Level=1]</Select>\ <Select Path='Security'>*</Select>\ <Select Path='Setup'>*</Select>\ </Query>\ </QueryList> </Input> <Output out>     Module      om_udp     Host        10.0.0.202     Port           9000 </Output> <Route 1>     Path        eventlog => out </Route>   btw i tried to use GELF out type but all messages in graylog was ��������������� hope u will help me Regards,   Gael

gsevestre created
Replies: 1
View post »
last updated
Output buffering
I am using om_tcp for forwarding Windows logs to a SIEM system. What will be the expected behavior of nxlog if e.g. a firewall blocks the TCP connections from the nxlog agent to the SIEM? Is there any potential danger in nxlog buffering outgoing logs so that large amounts of memory or disk space would be consumed on the sending host while the connections get blocked?

tsigidibam created
Replies: 1
View post »
last updated
ASSERTION FAILED
I got the error below, after a while that i begin to run the nxlog service. I use mysql database, tried postgresql as well and have the same error message. Has anyone idea how I can fix it? >>ERROR ### ASSERTION FAILED at line 205 in om_dbi.c/om_dbi_get_sql(): "len > j"

vyilmaz created
Replies: 1
View post »
last updated
Typo in syslog.c prevents correct UTF8 BOM processing
This can be seen in nxlog-ce-2.8.1248 distribution, syslog.c, line 1094 if ( (ptr[0] == 0xEF) && (ptr[0] == 0xBB) && (ptr[0] == 0xBF) ) should be if ( (ptr[0] == 0xEF) && (ptr[1] == 0xBB) && (ptr[2] == 0xBF) ) Please, fix this.

vadimevf created
Replies: 1
View post »
last updated
nxlog to message queue
Is there any roadmap for natively including an output module to a message queue service such as Redis, 0mq etc? Alternatively how can I write out to a queue using om_http? Thanks    Ash

akumar created
Replies: 1
View post »
last updated
Losing networking connectivity results in nxlog service failing to connect with loggly.com and never attempting to reconnect
NxLog does not reconnect to the server once a connection is restored after a network disconnect event. Simple step to repro - Simply unplugging the ethernet cable from the back of the PC while nxlog is attempting to send data to loggly.  The error happens almost instantly after the cable is unplugged. Below is the error message 2015-05-11 13:49:56 ERROR couldn't connect to tcp socket on logs-01.loggly.com:443; A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.  BTW - I am using NxLog Community Edition. Is this a known issue? I dont expect such a simple feature to not work in a community edition. It should automatically reconnect

kashdash7651 created
NXlog Community Edition on Windows - change installation path ?
Hi, Is it possible to change NXlog Community Edition installation path on Windows platform ? (default installation path is :C:\Program Files\nxlog or  C:\Program Files (x86)\nxlog ). I want to install it to C:\nxlog for example.   Thank you,      

emve created
Replies: 2
View post »
last updated
Some log messages got processed twice by nxlog when the log file is rotated
Hi, I setup nxlog to process log file.   Each log file got rotated by application hourly.  The original log file will rename to the same file name postfixed by timestamp, and the log messages will continue written to the new log file with the same name. I found that some of the log messages logged at the last minute or two of an hour are processed more than one time by NXLOG.  Does anyone have any idea what went wrong?   regards, Jerry   Here is my nxlog conf: <Input in2>     Module      im_file     File        "/nfs/home/jerryc/domains/smp_demo/nodes/torvm-core14/log/samp-*_svr2*"     SavePos     TRUE     ReadFromLast TRUE  

Jerry created
Replies: 1
View post »
last updated
Is there a citrix module?
Is there a citrix module that can import logs from citrix servers? I'd like to log the following: Authentication Apps launched User Activity Directories accessed   Thanks -G

ghostisic created
Replies: 1
View post »
last updated
Need Azure Table Storage output module
How to use NXLog to store logs in Azure Table Storage? Is there a om_azure_table_storage module out there?

igorgatis created
nxlog bug
From time to time on certain Windows servers nslog resends old events. The logs also there is an error "EvtNext failed with error 1717: The interface is unknown" How to fix that ?

aurora created
Replies: 3
View post »
last updated
can a nxlog.conf reference other nxlog.conf files>>>please assist.
Hi, Please advise...Thanks! is it possible to have an nxlog.conf that references other nxlog.conf files.  For example,  If I have iis.conf msevent.conf log4net.conf could I have an nxlog.conf that imports them in a componentized or modular format nxlog.conf would look something like: import  iis.conf import msevent.conf import log4net.conf I am trying to handle many different roles for servers at a big company..  Some servers just have log4net logs we want,  other servers we just want iis logs from and others iis logs and msevent logs.. There are lots of combinations. I am looking for an easy way handle all the server roles....web server, app server, DB server etc.  Each server type is going have different sets of logs processed and sent.  Nxlog is awesome...keep up the great work.  Thanks! Best Regards, Daniel                      

idigwww created
Replies: 1
View post »
last updated
im_odbc ConnectionString question
Hello, I am attempting to use the im_odbc module to gather table data from mssql into nagios log server. conf snippet <Input in> Module im_odbc ConnectionString DSN=mysql://USERNAME:PASSWORD@IPADDRESS:PORT;database=DATABASENAME; SQL Select RecordNumber as id, DateOccured as EventTime, data as Message from logtable WHERE RecordNumber > ? SavePos TRUE </Input>   <Output out> Module om_tcp Host IPADDRESS Port 1337 OutputType Binary </Output>   <Route 1> Path in => out </Route> Error ERROR im_odbc couldn't connect to the database, IM010:1:0:[Microsoft][ODBC Driver Manager] Data source name too long   Please Help! Thanks  GC.

ghostcat created
Replies: 1
View post »
last updated
IMDBI Setting configuration at load time and at use time
Hello I was wondering if it is possible to have multiple instances of im_dbi at one time. It is important for access to my global variables. If it is possibe, then  my question is: does NXLog make nx_im_dbi_conf_t for each module instance? Where I should store variables for module if I want to have per load visibility?

Tuxizm created
Replies: 1
View post »
last updated
UNC Paths in im_file
Not sure it can be achieved but wanted to check as to what was the best way to use UNC names in the File path.  I want to stage files locally from a remote location, digest and then delete the files. I have tried "//FileServer/directory/file as well as "\\FileServer/directory/file" without success. Is it possible to use a variation of im_exec such as  <Input mapdrive>   Module  im_file command  net  arg           use arg           z: arg          "\\fileserver\directory"   ....etc?   Thanks    Ash  

akumar created
Replies: 1
View post »
last updated
Latest CE version for Windows?
I believe the latest version of the windows ce msi is not available to download. In the following forum post it was mentioned that version nxlog-ce-2.9.1362 is out: http://nxlog.org/support-tickets/nxlog-crashing-windows-2012r2   I can't find that version for download via http://nxlog.org/products/nxlog-community-edition/download ? Please advised.    

LBOmar created
Replies: 2
View post »
last updated
nxlog v2.9.1357 windows always says keyword else invalid.
2015-04-29 20:32:46 INFO nxlog-ce-2.9.1347 started 2015-04-29 21:08:14 WARNING stopping nxlog service 2015-04-29 21:08:14 WARNING nxlog-ce received a termination request signal, exiting... 2015-04-29 21:08:15 ERROR invalid keyword: else at C:\Program Files (x86)\nxlog\conf\nxlog.conf:60 2015-04-29 21:08:15 ERROR module 'in' has configuration errors, not adding to route '2' at C:\Program Files (x86)\nxlog\conf\nxlog.conf:89 2015-04-29 21:08:15 WARNING not starting unused module in 2015-04-29 21:08:15 INFO connecting to 172.18.1.11:5142 2015-04-29 21:08:15 INFO nxlog-ce-2.9.1347 started 2015-04-29 21:08:15 ERROR if-else failed at line 77, character 234 in C:\Program Files (x86)\nxlog\conf\nxlog.conf. statement execution has been aborted; procedure 'parse_csv' failed at line 77, character 80 in C:\Program Files (x86)\nxlog\conf\nxlog.conf. statement execution has been aborted; Not enough fields in CSV input, expected 17, got 1 in input ' #Software: Microsoft Exchange Server' ​   Here is my conf file #define ROOT C:\Program Files\nxlog define ROOT C:\Program Files (x86)\nxlog define IGNORE_COMMENT if $raw_event =~ /^#/ drop(); define BASEDIR C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\Logs\MessageTracking define AgentLog_dir C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\Logs\AgentLog Moduledir %ROOT%\modules CacheDir %ROOT%\data Pidfile %ROOT%\data\nxlog.pid SpoolDir %ROOT%\data LogFile %ROOT%\data\nxlog.log #LogLevel DEBUG <Extension _syslog>       Module      xm_syslog </Extension> <Extension _json>      Module        xm_json </Extension> <Extension ExAgentLog>     Module        xm_csv     Fields        $Timestamp,$SessionId,$LocalEndpoint,$RemoteEndpoint,$EnteredOrgFromIP,$MessageId,$P1FromAddress,$P2FromAddresses,$Recipient,$NumRecipients,$Agent,$Event,$Action,$SmtpResponse,$Reason,$ReasonData,$Diagnostics     FieldTypes    String,String,String,String,String,String,String,String,String,Integer,String,String,String,String,String,String,String     Delimiter    , </Extension> <Extension ExMSGTRK>     Module        xm_csv     Fields        $date-time,$client-ip,$client-hostname,$server-ip,$server-hostname,$source-context,$connector-id,$source,$event-id,$internal-message-id,$message-id,$recipient-address,$recipient-status,$total-bytes,$recipient-count,$related-recipient-address,$reference,$message-subject,$sender-address,$return-path,$message-info,$directionality,$tenant-id,$original-client-ip,$original-server-ip,$custom-data     FieldTypes    String,String,String,String,String,String,String,String,String,String,String,String,String,Integer,Integer,String,String,String,String,String,String,String,String,String,String,String     Delimiter    , </Extension> <Extension charconv>     Module xm_charconv     AutodetectCharsets utf-8,UNICODE,utf-16, utf-32, iso8859-2 </Extension> <Input in>     Module      im_file     File        '%BASEDIR%\MSGTRK????????*-*.LOG'     ReadFromLast FALSE     Exec        if $raw_event =~ /^#/ drop();\                                 else \                 {    \                     ExMSGTRK->parse_csv();\                     delete($SourceModuleName);\                     delete($SourceModuleType);\                     delete($EventReceivedTime);\                     $SourceName="Message Tracking Log";    \                     to_json();\                 } </Input> <Input in2>     Module        im_file     ReadFromLast FALSE     File        '%AgentLog_dir%\AgentLog*.LOG'          EXEC         if $raw_event =~ /^#/ drop();\                 else \                 {\                     ExAgentLog->parse_csv();    \                     delete($SourceModuleName);    \                     delete($SourceModuleType);    \                     delete($EventReceivedTime); \                     $SourceName="Agent Log";    \                     to_json();            \                 } </Input> <Output out2>     Module      om_tcp     Host        172.18.1.11     Port        5142 </Output> <Route 2>     Path        in,in2 => out2 </Route>

yoke88 created
Replies: 1
View post »
last updated