Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation leaves NXLog configuration blank #574

Open
vicosurge opened this issue Oct 13, 2021 · 0 comments
Open

Documentation leaves NXLog configuration blank #574

vicosurge opened this issue Oct 13, 2021 · 0 comments

Comments

@vicosurge
Copy link

This is more of an observation than a complaint; so far, it has been super simple to implement and use (much, much more straightforward than SecurityOnion or the whole Elastic stack).

The thing I could not find in the documentation was how to setup NXLog to send logs that Logstash could understand, I got the port, but it was missing the portion in which to_json(); has to be added for it to work and for the data actually to be interpreted.

Example below:

<Extension _json>
	Module 	xm_json
</Extension>

<Input windows_helk>
    Module          im_msvistalog
    SavePos         TRUE
    <QueryXML>
        <QueryList>
            <Query Id='0'>
                <Select Path='Application'>*</Select>
                <Select Path='Security'>*[System/Level&lt;4]</Select>
                <Select Path='System'>*</Select>
                <Select Path='Microsoft-Windows-Sysmon/Operational'>*</Select>			
		<Select Path='Microsoft-Windows-PowerShell/Operational'>*</Select>
		<Select Path='Windows PowerShell'>*</Select>
            </Query>
        </QueryList>
    </QueryXML>
</Input>

<Output helk_logstash>
	Module		om_tcp
	Host		<my_ip>:8531
	Exec		to_json();
</Output>

<Route helk>
	Path	windows_helk => helk_logstash
</Route>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant