Logger with UDP support on Alpine The Next CEO of Stack OverflowNo php errors in...

What steps are necessary to read a Modern SSD in Medieval Europe?

Proper way to express "He disappeared them"

Why this way of making earth uninhabitable in Interstellar?

What does "Its cash flow is deeply negative" mean?

Rotate a column

Is French Guiana a (hard) EU border?

Flying from Cape Town to England and return to another province

Chain wire methods together in Lightning Web Components

Domestic-to-international connection at Orlando (MCO)

How to place nodes around a circle from some initial angle?

Why isn't the Mueller report being released completely and unredacted?

Make solar eclipses exceedingly rare, but still have new moons

What was the first Unix version to run on a microcomputer?

Why did CATV standarize in 75 ohms and everyone else in 50?

Does increasing your ability score affect your main stat?

Is it professional to write unrelated content in an almost-empty email?

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

Can we say or write : "No, it'sn't"?

Is it possible to replace duplicates of a character with one character using tr

Why didn't Khan get resurrected in the Genesis Explosion?

Axiom Schema vs Axiom

Solving system of ODEs with extra parameter

How to avoid supervisors with prejudiced views?

Reference request: Grassmannian and Plucker coordinates in type B, C, D



Logger with UDP support on Alpine



The Next CEO of Stack OverflowNo php errors in Alpine/Nginx/PHP 7.1.2 with dockerRewriting facility/severity in rsyslog v7 before shipping off to a remote collectorAlpine linux on AWS / EC2 : how to login with my public key?Alpine shell can't find file in dockerUsing PhangomJS in Docker AlpineDeflate module not working in Alpine ApacheInstalling AIDE in AlpineInstalling Shapely on Alpine dockerInstalling Chromium on Alpine Linux, strange errorHow to install sssd in Alpine?












0















I am trying to figure which package (if any) I need to install on an Alpine docker image in order for the logger command to support the --udp flag.



By default, the logger command in alpine only supports a very minimal set of flags, and I need the --udp support.



# logger --help
BusyBox v1.28.4 (2018-05-30 10:45:57 UTC) multi-call binary.

Usage: logger [OPTIONS] [MESSAGE]

Write MESSAGE (or stdin) to syslog

-s Log to stderr as well as the system log
-t TAG Log using the specified tag (defaults to user name)
-p PRIO Priority (numeric or facility.level pair)


I know there are rsyslog and syslog-ng alternatives, but I was hoping to get the Alpine container to behave exactly like my Ubuntu, at least in the logger perspective.



Thanks in advance.










share|improve this question


















  • 1





    You don't. BusyBox logger can only write to the local syslog, not remote syslog servers. If you really need to write to remote syslog servers, then you should probably use something other than alpine. Of course, since it's in a Docker image you probably ought to let Docker handle all the logging anyway.

    – Michael Hampton
    Jan 2 at 14:06













  • That's disappointing.... I need more granular and specific implementation then what I can do with docker logging.

    – DannyB
    Jan 2 at 15:10
















0















I am trying to figure which package (if any) I need to install on an Alpine docker image in order for the logger command to support the --udp flag.



By default, the logger command in alpine only supports a very minimal set of flags, and I need the --udp support.



# logger --help
BusyBox v1.28.4 (2018-05-30 10:45:57 UTC) multi-call binary.

Usage: logger [OPTIONS] [MESSAGE]

Write MESSAGE (or stdin) to syslog

-s Log to stderr as well as the system log
-t TAG Log using the specified tag (defaults to user name)
-p PRIO Priority (numeric or facility.level pair)


I know there are rsyslog and syslog-ng alternatives, but I was hoping to get the Alpine container to behave exactly like my Ubuntu, at least in the logger perspective.



Thanks in advance.










share|improve this question


















  • 1





    You don't. BusyBox logger can only write to the local syslog, not remote syslog servers. If you really need to write to remote syslog servers, then you should probably use something other than alpine. Of course, since it's in a Docker image you probably ought to let Docker handle all the logging anyway.

    – Michael Hampton
    Jan 2 at 14:06













  • That's disappointing.... I need more granular and specific implementation then what I can do with docker logging.

    – DannyB
    Jan 2 at 15:10














0












0








0








I am trying to figure which package (if any) I need to install on an Alpine docker image in order for the logger command to support the --udp flag.



By default, the logger command in alpine only supports a very minimal set of flags, and I need the --udp support.



# logger --help
BusyBox v1.28.4 (2018-05-30 10:45:57 UTC) multi-call binary.

Usage: logger [OPTIONS] [MESSAGE]

Write MESSAGE (or stdin) to syslog

-s Log to stderr as well as the system log
-t TAG Log using the specified tag (defaults to user name)
-p PRIO Priority (numeric or facility.level pair)


I know there are rsyslog and syslog-ng alternatives, but I was hoping to get the Alpine container to behave exactly like my Ubuntu, at least in the logger perspective.



Thanks in advance.










share|improve this question














I am trying to figure which package (if any) I need to install on an Alpine docker image in order for the logger command to support the --udp flag.



By default, the logger command in alpine only supports a very minimal set of flags, and I need the --udp support.



# logger --help
BusyBox v1.28.4 (2018-05-30 10:45:57 UTC) multi-call binary.

Usage: logger [OPTIONS] [MESSAGE]

Write MESSAGE (or stdin) to syslog

-s Log to stderr as well as the system log
-t TAG Log using the specified tag (defaults to user name)
-p PRIO Priority (numeric or facility.level pair)


I know there are rsyslog and syslog-ng alternatives, but I was hoping to get the Alpine container to behave exactly like my Ubuntu, at least in the logger perspective.



Thanks in advance.







syslog alpine






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 2 at 12:28









DannyBDannyB

1236




1236








  • 1





    You don't. BusyBox logger can only write to the local syslog, not remote syslog servers. If you really need to write to remote syslog servers, then you should probably use something other than alpine. Of course, since it's in a Docker image you probably ought to let Docker handle all the logging anyway.

    – Michael Hampton
    Jan 2 at 14:06













  • That's disappointing.... I need more granular and specific implementation then what I can do with docker logging.

    – DannyB
    Jan 2 at 15:10














  • 1





    You don't. BusyBox logger can only write to the local syslog, not remote syslog servers. If you really need to write to remote syslog servers, then you should probably use something other than alpine. Of course, since it's in a Docker image you probably ought to let Docker handle all the logging anyway.

    – Michael Hampton
    Jan 2 at 14:06













  • That's disappointing.... I need more granular and specific implementation then what I can do with docker logging.

    – DannyB
    Jan 2 at 15:10








1




1





You don't. BusyBox logger can only write to the local syslog, not remote syslog servers. If you really need to write to remote syslog servers, then you should probably use something other than alpine. Of course, since it's in a Docker image you probably ought to let Docker handle all the logging anyway.

– Michael Hampton
Jan 2 at 14:06







You don't. BusyBox logger can only write to the local syslog, not remote syslog servers. If you really need to write to remote syslog servers, then you should probably use something other than alpine. Of course, since it's in a Docker image you probably ought to let Docker handle all the logging anyway.

– Michael Hampton
Jan 2 at 14:06















That's disappointing.... I need more granular and specific implementation then what I can do with docker logging.

– DannyB
Jan 2 at 15:10





That's disappointing.... I need more granular and specific implementation then what I can do with docker logging.

– DannyB
Jan 2 at 15:10










1 Answer
1






active

oldest

votes


















2














I had the same problem, just add at your Dockerfile :



RUN apk add -U util-linux





share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "2"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f947321%2flogger-with-udp-support-on-alpine%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    I had the same problem, just add at your Dockerfile :



    RUN apk add -U util-linux





    share|improve this answer






























      2














      I had the same problem, just add at your Dockerfile :



      RUN apk add -U util-linux





      share|improve this answer




























        2












        2








        2







        I had the same problem, just add at your Dockerfile :



        RUN apk add -U util-linux





        share|improve this answer















        I had the same problem, just add at your Dockerfile :



        RUN apk add -U util-linux






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 10 mins ago









        valiano

        1409




        1409










        answered Jan 11 at 16:03









        Deivid Bitti PadilhaDeivid Bitti Padilha

        361




        361






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f947321%2flogger-with-udp-support-on-alpine%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            117736 Шеррод Примітки | Див. також | Посилання | Навігаційне...

            As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

            Маріан Котлеба Зміст Життєпис | Політичні погляди |...