How to split 2 curl command output in message

Hi, I'm still a newbie in ELK. So, it's a big help if you can give any advise to me. :smiley: I really want to explore ELK.

I just need to ask if its possible to split the output of this 2 script. And how can I split it?

input {
           exec {
                   command => "bash curl.sh; bash curl2.sh"
                   interval => 180
            }
}
output {
  stdout { codec => rubydebug }
}

And I don't know if its possible to join this json object. Like the sql join. Hope you can help me out. Thank you!