<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to add an external link reference into a Splunk /services/message using the Splunk REST API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136063#M28013</link>
    <description>&lt;P&gt;Hi @alauri, thanks for this info. Let me run this all by the engineering team and I'll get back to you soon!&lt;BR /&gt;
Best,&lt;BR /&gt;
@frobinson_splunk&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jun 2015 23:56:04 GMT</pubDate>
    <dc:creator>frobinson_splun</dc:creator>
    <dc:date>2015-06-12T23:56:04Z</dc:date>
    <item>
      <title>How to add an external link reference into a Splunk /services/message using the Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136054#M28004</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I'm using the REST API "&lt;STRONG&gt;/services/messages&lt;/STRONG&gt;" to send a message to Splunk and it works fine.&lt;BR /&gt;
Now, I need to insert an external link into that message.&lt;/P&gt;

&lt;P&gt;For example, I'd like to replicate something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;a href="mailto:example@example.com"&amp;gt;Example&amp;lt;/a&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;into a message I'm sending to  "&lt;STRONG&gt;/services/messages&lt;/STRONG&gt;" REST APIs of Splunk.&lt;/P&gt;

&lt;P&gt;Is it possible to do that?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 14:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136054#M28004</guid>
      <dc:creator>alauri</dc:creator>
      <dc:date>2015-06-04T14:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an external link reference into a Splunk /services/message using the Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136055#M28005</link>
      <description>&lt;P&gt;Hi @alauri:&lt;BR /&gt;
Here is a link to the current documentation on sending a message via services/messages:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/RESTREF/RESTsystem#messages"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/RESTREF/RESTsystem#messages&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It looks like you should be able to pass a String value for the message, but I am not sure about placing an external link with markup and having the link work. Let me look into this with our engineers. I'll report back!&lt;/P&gt;

&lt;P&gt;Thanks! Please feel free to post further feedback and/or questions here.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2015 00:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136055#M28005</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2015-06-05T00:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an external link reference into a Splunk /services/message using the Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136056#M28006</link>
      <description>&lt;P&gt;Hi @frobinson_splunk,&lt;BR /&gt;
thanks for the response!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2015 07:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136056#M28006</guid>
      <dc:creator>alauri</dc:creator>
      <dc:date>2015-06-05T07:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an external link reference into a Splunk /services/message using the Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136057#M28007</link>
      <description>&lt;P&gt;You're welcome! Did this help answer your question? Or are you still wondering about the external link?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2015 18:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136057#M28007</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2015-06-05T18:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an external link reference into a Splunk /services/message using the Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136058#M28008</link>
      <description>&lt;P&gt;Actually yes, I'm still wondering if is it possible placing an external link into a message.&lt;/P&gt;

&lt;P&gt;I went through the documentation and on Internet and I found the way to place a "local link" into a message. &lt;BR /&gt;
For example, from my Python code, where I need to send a message to Splunk, I used the syntax &lt;STRONG&gt;[[/manager/search/control|Restart here]]&lt;/STRONG&gt; to get a link to the restart page of Splunk instance (&lt;STRONG&gt;/en-US/manager/search/control&lt;/STRONG&gt; is the path I got) and it works.&lt;/P&gt;

&lt;P&gt;Now, I also need to do the same with an external link, the same I typed in the question. Did you look into this with your engineers?&lt;/P&gt;

&lt;P&gt;Thank you very much @frobinson_splunk for your time!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2015 10:10:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136058#M28008</guid>
      <dc:creator>alauri</dc:creator>
      <dc:date>2015-06-07T10:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an external link reference into a Splunk /services/message using the Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136059#M28009</link>
      <description>&lt;P&gt;Hi @alauri,&lt;BR /&gt;
Thanks for the extra details! I'm currently tracking down an answer for you about the working external link. Should be able to provide more info shortly!&lt;/P&gt;

&lt;P&gt;Thanks again,&lt;BR /&gt;
@frobinson_splunk&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2015 16:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136059#M28009</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2015-06-08T16:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an external link reference into a Splunk /services/message using the Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136060#M28010</link>
      <description>&lt;P&gt;Hi, @alauri: &lt;BR /&gt;
After consulting with our engineering team, the short answer to your question is that external links within the message text are not currently supported. There might be a workaround, though, and I'm checking to see if there's something we can suggest for you.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;BR /&gt;
@frobinson_splunk&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2015 20:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136060#M28010</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2015-06-08T20:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an external link reference into a Splunk /services/message using the Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136061#M28011</link>
      <description>&lt;P&gt;Hi @frobinson_splunk,&lt;BR /&gt;
thank you very much, your support was great and very clear!&lt;/P&gt;

&lt;P&gt;I hope it will be possible to find a way to do that.&lt;/P&gt;

&lt;P&gt;Many thanks again!!!&lt;BR /&gt;
@alauri&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 07:15:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136061#M28011</guid>
      <dc:creator>alauri</dc:creator>
      <dc:date>2015-06-09T07:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an external link reference into a Splunk /services/message using the Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136062#M28012</link>
      <description>&lt;P&gt;Hi @frobinson_splunk,&lt;/P&gt;

&lt;P&gt;I went through the Splunk source code and I found how to place an "external link" into a message.&lt;/P&gt;

&lt;P&gt;Currently I work with Splunk 6.2.1 and, into the file &lt;STRONG&gt;utils.js&lt;/STRONG&gt; under the folder &lt;STRONG&gt;/share/splunk/search_mrsparkle/exposed/js/&lt;/STRONG&gt;, maybe I found regex for both "internal link" and "external link".&lt;BR /&gt;
About the external link regex, I think it matches only links like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://www.example.com" target="test_blank"&gt;http://www.example.com&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regarding initial question I made, I don't think it is possible to place that kind of external link with that regex... for example, I tried to place below text into a message:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mailto:example@example.com Example]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but the result I got it was just a copy and paste of that text into the message. Otherwise, when I placed this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[http://www.example.com Example]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I got a correct link to an external page.&lt;BR /&gt;
I hope my comment was clear and I'd like ask you if what I said was correct?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
@alauri&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 08:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136062#M28012</guid>
      <dc:creator>alauri</dc:creator>
      <dc:date>2015-06-12T08:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an external link reference into a Splunk /services/message using the Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136063#M28013</link>
      <description>&lt;P&gt;Hi @alauri, thanks for this info. Let me run this all by the engineering team and I'll get back to you soon!&lt;BR /&gt;
Best,&lt;BR /&gt;
@frobinson_splunk&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 23:56:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136063#M28013</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2015-06-12T23:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an external link reference into a Splunk /services/message using the Splunk REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136064#M28014</link>
      <description>&lt;P&gt;Hi, @alauri, just checking back in after talking with our engineers. Your workaround is fine for external links. It is currently supported for you to create an external link following the syntax you show above:&lt;BR /&gt;
[&lt;A href="http://www.example.com"&gt;http://www.example.com&lt;/A&gt; Example]&lt;/P&gt;

&lt;P&gt;Adding in a "mailto" link is not currently supported at all, but our engineers think that this could be a great thing to enable down the road. We're looking into adding in this capability, so stay tuned!&lt;/P&gt;

&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 22:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-an-external-link-reference-into-a-Splunk-services/m-p/136064#M28014</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2015-06-15T22:04:02Z</dc:date>
    </item>
  </channel>
</rss>

