Results 1 to 12 of 12

Thread: Strange date/time stamp in pure-ftpd logs

  1. #1
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,076

    Strange date/time stamp in pure-ftpd logs

    We have pure-ftpd running on a custombuild 1.2 server with php-cgi and I just checked the pure-ftpd logfiles.

    The datestamp is in a strange format:
    1331941597 4f63d0c4.58a5 username 84.30.xxx.xxx U 307155 0 /home/username/domains.... etc.
    Is there a way to fix this so normal date and time is displayed?
    I might change pure-ftpd.conf but since the config is not called by DA this will probably not work.
    Greetings, Richard.

  2. #2
    nobaloney's Avatar
    nobaloney is offline NoBaloney Internet Svcs - In Memoriam †
    Join Date
    Jun 2003
    Location
    California
    Posts
    26,122
    Try it; most likely it'll work if the configuration file has an option for changing the date/time representation. Logging isn't handled by DirectAdmin; it's handled by the underlying OS, and the log contents are controlled by the configuration.

    Jeff
    +1 951 643-5345
    Third-Party DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

  3. #3
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,076
    As I said, config is not called by DA.
    Changing the configuration will have no effect because pure-ftpd is called by commandline in the initscript instead of via the config.
    OPTIONS="-B -A -C 4 -E -H -k 95 -L 2000:8 -O stats:${LOG} -l puredb:${DB} -p 35000:35999 -u 100 -U 133:022 -w -Z"
    OPTIONS="${OPTIONS} -Y 1 -J HIGH:MEDIUM:+TLSv1:!SSLv2:+SSLv3"
    I wonder why proftpd is called via the config and pure-ftpd is called via commandline, because it's not that difficult to make some default to be used with DA.
    Greetings, Richard.

  4. #4
    Hello,

    Looking at the parsing code in the tally in DA, the log format you've pasted is correct for pure-ftpd. That log will need to stay as it is, else DA won't be able to read it.

    Doing some quick documentation reading, add the compile option to theconfigure/pureftpd/configure.pureftpd (copy it to custom/pureftpd/configure.pureftpd):
    Code:
    --with-altlog=xferlog:/var/log/somelog.log
    keeping in mind that I've not tested it, and I'm not 100% sure on the syntax.

    John

  5. #5
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,076
    Thank you John.
    I did not know that I could put up custom compile code too. Cool! When I ran it at home I always used the --with-everything option so I would never miss anything if needed.
    The custom compile option will fix my question for sure!

    Is there a reason that in opposite to Proftpd the config for pure-ftpd is not being used?
    Greetings, Richard.

  6. #6
    You're welcome to change it however you'd like.
    I believe it was just a design choice when testing, but changing it to use a .conf file won't hurt anything (just need to update the boot script to specify the conf, and remove the options)
    Just make sure to add the existing options into the conf file (same db file, same log, same format.. then add your extra log, etc).

    John

  7. #7
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,076
    Yep I know that this is a possibility, I just wondered why it was done.
    Maybe in the future it can be conf by default.

    Thanks for your quick answers!
    Greetings, Richard.

  8. #8
    Hello,

    Reason is here:
    http://download.pureftpd.org/pub/pur...iguration-File

    it gets a bit more messy than other services, with regards to config files.
    Requires a seperate perl wrapper to parse the config, then make a call to the program with the command line anyway.
    Although perl is usually present on all system, having this extra level of complexity was rather extreme, vs all other services which has the normal parser built right in to the binaries (it's really not that difficult to do, and it really doesn't add much overhead.. not sure why the author is opposed to it)

    We could look at changing it should enough people want it.

    John

  9. #9
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,076
    Requires a seperate perl wrapper to parse the config, then make a call to the program with the command line anyway.
    You're quite correct there. I forgot about that because indeed on most systems perl is present.
    However, there are also systems where it isn't and I now understand the benefit for you to call it via commandline. Seems indeed a bit more stable way to implement on more systems.

    Thanks for the explanation! I think due to the way it's called, we can better leave it the way it is.
    Greetings, Richard.

  10. #10
    Join Date
    Sep 2017
    Posts
    1

    People

    Quote Originally Posted by Richard G View Post
    We have pure-ftpd running on a custombuild 1.2 server with php-cgi and I just checked the pure-ftpd logfiles.

    The datestamp is in a strange format:


    Is there a way to fix this so normal date and time is displayed?
    I might change pure-ftpd.conf but since the config is not called by DA this will probably not work.
    People, since this page is first searchable page by the google from past 2012 you need to pay attention and correctly answer on question what the ***** "1331941597" means in log above.
    The answer is:
    Look:
    <Bold> This is epoch </Bold>
    You can convert this idiotic format to normal on this site: https://www.epochconverter.com/

  11. #11
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    3,076
    you need to pay attention and correctly answer on question what the ***** "1331941597" means in log above.
    You might need to pay attention to the question and the answer. Because this was -not- the question! And also not the answer.
    And the question -was- answered correctly by DA support.

    However, maybe some people are interested that it's called epoch, so thank you for stating that after 5 years.
    Greetings, Richard.

  12. #12
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,684
    Considering it's his first and only post, probably need to do better google search and learn to read everything before flaming
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

Similar Threads

  1. Configuration file for Pure-FTPd
    By nservices in forum General Technical Discussion & Troubleshooting
    Replies: 6
    Last Post: 03-27-2013, 06:45 AM
  2. Replies: 1
    Last Post: 11-21-2011, 06:36 AM
  3. Questions: Changed Proftpd to Pure-ftpd
    By gwolf2u in forum System-Level Technical Discussion
    Replies: 1
    Last Post: 05-28-2011, 11:49 AM
  4. Pure-FTPd 1.0.31 has been released.
    By smtalk in forum Required Software Version Updates
    Replies: 0
    Last Post: 04-24-2011, 07:57 AM
  5. pure-ftpd
    By scott9824 in forum DirectAdmin General Discussion
    Replies: 1
    Last Post: 08-16-2005, 06:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •