Sorting

Comments

3 comments

  • Avatar
    Rick Jury

    have you tried the sort operator?

     

    | sort _sourcehost asc

    0
    Comment actions Permalink
  • Avatar
    Yuvaraj M

    yes, that doesn't help...

    i wanted to be in the below order in chart format :

    1._sourceHost="/aws/lambda/dev-c4c-student-event-publisher-v1"

    2._sourceHost="/aws/lambda/dev-student-queue-publisher-v1"

    3. _sourceHost="/aws/lambda/dev-database-student-queue-v1"

    4. _sourceHost="/aws/lambda/dev-database-student-history-queue-v1")

     

    Is there a way to rename the sourcehost field?

    0
    Comment actions Permalink
  • Avatar
    Clayton Thompson

    if (_sourceHost="/aws/lambda/dev-c4c-student-event-publisher-v1", "1 c4c-event",

    if (_sourceHost="/aws/lambda/dev-student-queue-publisher-v1", "2 queue",

    if (_sourceHost="/aws/lambda/dev-database-student-queue-v1", "3 db-queue,

    "4 db-history-queue") ) ) as _sourcehost

    0
    Comment actions Permalink

Please sign in to leave a comment.