Skip to content

path problem, how can i solve this ? #10739

Answered by spencergilbert
StefanSa asked this question in Q&A
Discussion options

You must be logged in to vote

Can you share an example event thats coming into that remap component, as well as what you'd expect the event to look like after?

One thing that I notice immediately about the script is this:

if exists(.sophos.xg.url) {
   .url.original = del(.sophos.xg.url)
}
# Everything below assumes the above `if` statement is true,
# which suggests everything below should be included in the
# above block. Otherwise you could be calling these functions
# on fields that don't exist and erroring.
. = parse_url!(.url.original)
.url.domain = del(.host)
.url.path = del(.path)
.url.scheme = del(.scheme)
.url.fragment = del(.fragment)
.url.password = del(.password)
.url.username = del(.username)
.url.port = del

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@StefanSa
Comment options

@spencergilbert
Comment options

@StefanSa
Comment options

@spencergilbert
Comment options

Answer selected by StefanSa
Comment options

You must be logged in to vote
2 replies
@spencergilbert
Comment options

@StefanSa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants