README: how to ask questions effectively

View thread

gahorvath Nxlog ✓ (Last updated )

Hi All,

please adhere to the guidelines below to get faster responses to your queries.

1 State the problem clearly:

I am trying to collect logs from a log file using im_file and NXLog reads the whole file after each restart.

2 Provide your configuration

in a code block:
```
configuration text
```

3 provide the contents of nxlog.log in a code block

2023-04-12 08:00:27 INFO [CORE|main] configuration OK
2023-04-12 08:00:27 INFO [CORE|main] nxlog-5.7.7898 (68bb24e7e@REL_v5.7) started on Linux
2023-04-12 08:00:27 INFO [om_batchcompress|to_relay] connecting to lab1.home(192.168.14.52):2514
2023-04-12 08:00:27 INFO [om_batchcompress|to_relay] tcp connection established with lab1.home(192.168.14.52):2514
2023-04-12 08:00:27 INFO [xm_admin|admin] connecting to lab1.home(192.168.14.52):4041
2023-04-12 08:00:27 INFO [xm_admin|admin] tcp connection established with lab1.home(192.168.14.52):4041
2023-04-12 08:00:28 INFO [im_fim|fim] Module 'fim': FIM scan started
2023-04-12 08:00:28 ERROR [im_fim|fim] Module 'fim' could not open file '/opt/nxlog/bin/upgrade-nxsec.sh': Permission denied
2023-04-12 08:00:28 INFO [im_fim|fim] Module 'fim': FIM scan finished in 0.05 seconds. Scanned folders: 15 Scanned files: 102 Read file bytes: 15674631

4 provide environment description

NXLog CE is running on Windows 2022 server 

Package version is 3.2.2329

5 provide relevant details

This configuration has been working before we updated from version 2.11

Now it does not

6 if your problem involves parsing data provide samples of your input and expected output as well as what you actually get

My data looks like this:

{"message": “message1”, "time": Thu 20 Apr 10:48:43 CEST 2023}

I am getting an error:

> error message here

I would like to receive the time in UNIX time (seconds since Epoch)

Using this format enables us to get started much faster, and perhaps address your issue in the very first response we write

Would that not be great? :)

 

Thanks for your cooperation!

Gabor