Some more info will help - What error are you getting? What does your 'ip' field look like?
umm and also, why are you converting it to a DF just to go back to a list right away?
... View more
$hosttype$ needs to get an initial value for the search to be built and run.
You can do that in another dynamic input or by giving it a static value in another input.
... View more
There are many related blog posts and answers around here.
I recommend you start from a read of the epic Maintaining the State of the Union post.
Once you've done this alerting will be as easy as scheduling and setting an alert action.
... View more