3
responses

Hi,

I installed nxlog and nxlog-manager for testing my own logs in the dashboard, i am new to nxlog, and can't able to check this in dashboard.
could you please tell me how to check logs in dashboard, i didn't find any options in the dashboard menu.

Thanks in advance.

AskedMay 18, 2020 - 9:21am

Comments (3)

  • seth.stenzel's picture
    (NXLog)

    Greetings,

    When you say "check logs" which logs are you speaking of? Are you talking about the status logs of manager, status logs of nxlog client, or do you mean the actual events captured by nxlog client?

    Also, do you mind pasting the configuration you are using minus any sensitive information?

    Thanks,

    ~Seth S.

  • sureshnakkina's picture

    Hi Stenzel,

    Thanks for you reply, i am pasting my config file data here.

    <Extension _syslog>
    Module xm_syslog
    </Extension>

    <Extension _json>
    Module xm_json
    </Extension>

    <Extension fileop>
    Module xm_fileop
    </Extension>

    <Input in>
    Module im_file
    File '/var/log/myfile.txt'
    Exec parse_syslog();
    </Input>

    <Output out>
    Module om_file
    Host 192.168.189.x
    Port 1514
    Exec $raw_event = to_json();
    </Output>

    <Route testing>
    Path in => out
    </Route>

    I need to check some text file log data in nxlog-manager dashboard, so how it could be done, so for example my file is in /var/log/ or some other path, i need to check that data in some other server as i mentioned Host IP in config and what port we need to use to send data?

    or can i use nxlog client machine as a server machine, so that i can give localhost as Host name.this is what i need from Nxlog-manager dashboard i want to see my own logs in dashboard.

    Thanks in advance.

  • seth.stenzel's picture
    (NXLog)

    Greetings,

    Correct me if I'm wrong, but you are want to actually see the events being sent by the agent in manager? If so that is not a feature of Manager. NXLog EE handles the Event flows. Manager will show you status counters of sent/received traffic from the agent, but manager itself cannot be used to view that event data.

    If you were looking to visually test end to end what you could set up one instance of NXLog EE agent to process the files and send the events, and another NXLog EE agent to receive those and then write them back out to a file or run the second agent in foreground mode with: nxlog -f and could configure it to print the received events to the console with:
    Exec log_info($raw_event); .

    Does that answer your question?

    ~Seth S.

Answers (0)