Hello, is there a possibility to upload and attach a log file *.log to a post?
When I try that, it only allows pcs format like jpeg, pdf, etc
No.
I dould checked with a test file, it is graphics only.
You will have to upload it to a pastebin and link to it.
You can also use fpaste to put some info in the CentOS pastebin automatically What is fpaste and how can I use it?
Anyway also when you are not a specialist of linux, log files are text files which can be filtered.
An example would be, to have a home drive which makes problems while booting. For that we not need the whole log file, it is enough to get the messages which describe the error[1], filtered out of the log.
Then cut and past it into a pre-formatted text field </>
Examples:
cat bootlog |grep home
[ OK ] Found device dev-disk-by\x2duuid-d…ng_SSD_840_EVO_250GB F41-root-home.
[ OK ] Found device dev-disk-by\x2duuid-d…ng_SSD_840_EVO_250GB F41-root-home.
Mounting home.mount - /home...
[ OK ] Mounted home.mount - /home.
Starting systemd-homed.service - Home Area Manager...
[ OK ] Started systemd-homed.service - Home Area Manager.
[ OK ] Finished systemd-homed-activate.service - Home Area Activation.
Or from the journal:
journalctl --no-tail --no-hostname -S "today" |grep /home
mai 10 07:56:12 systemd[1]: Mounting home.mount - /home...
mai 10 07:56:12 systemd[1]: Mounted home.mount - /home.
mai 10 07:56:16 systemd-homed[740]: Watching /home.
I guess that is a reason why the logs not can be uploaded … to avoid transmission of unneeded/confidential information.
As more as you filter as faster you get an answer here. If you have doubts how to filter you can ask here too.
If someone asks for a whole log file you still can do as @theprogram linked; with fpaste.
I do have no error, so I give just an example to filter ↩︎