<?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 Setting tag values through REST API in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69360#M14044</link>
    <description>&lt;P&gt;Is it possible create tags and set tag values through the REST API?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2011 02:40:04 GMT</pubDate>
    <dc:creator>spbayer</dc:creator>
    <dc:date>2011-03-29T02:40:04Z</dc:date>
    <item>
      <title>Setting tag values through REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69360#M14044</link>
      <description>&lt;P&gt;Is it possible create tags and set tag values through the REST API?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2011 02:40:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69360#M14044</guid>
      <dc:creator>spbayer</dc:creator>
      <dc:date>2011-03-29T02:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting tag values through REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69361#M14045</link>
      <description>&lt;P&gt;It is theoretically possible. In general, anything you can do via the UI can be done via the REST API, since the UI uses the REST API to do all Splunk server and object manipulations. However, in practice, not all object manipulations are currently published.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2011 07:13:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69361#M14045</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-03-29T07:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setting tag values through REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69362#M14046</link>
      <description>&lt;P&gt;Yes it is possible, this not publicly documented however this is how the UI adds/deletes fields from the search view&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;POST /servicesNS/&amp;lt;user&amp;gt;/&amp;lt;app&amp;gt;/search/fields/&amp;lt;field-name&amp;gt;/tags "value=ValueToTagHere&amp;amp;add=tag1&amp;amp;add=tag2&amp;amp;delete=tag3&amp;amp;delete=tag4"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can have as many add and delete tags as you wish in your POST&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2011 08:08:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69362#M14046</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2011-03-29T08:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting tag values through REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69363#M14047</link>
      <description>&lt;P&gt;@Ledion Bitincka&lt;BR /&gt;
I dont understand, we usually access tags like | rest splunk_server=local /servicesNS/-/-/search/fields/{field name}/tags&lt;/P&gt;

&lt;P&gt;how to user POST is it like "| POST "or "| rest POST". Can you give full command?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 11:14:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69363#M14047</guid>
      <dc:creator>ma_anand1984</dc:creator>
      <dc:date>2013-03-01T11:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Setting tag values through REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69364#M14048</link>
      <description>&lt;P&gt;The tagger app appears to use this undocumented API. &lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 16:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69364#M14048</guid>
      <dc:creator>asdfasdf12321</dc:creator>
      <dc:date>2015-03-17T16:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Setting tag values through REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69365#M14049</link>
      <description>&lt;P&gt;It's also possible to remove tags more globally with something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -u admin:changeme -k &lt;A href="https://localhost:8089/servicesNS/admin/&amp;lt;app&amp;gt;/search/tags/&amp;lt;tag-name&amp;gt;" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/&amp;lt;app&amp;gt;/search/tags/&amp;lt;tag-name&amp;gt;&lt;/A&gt;; -d "delete"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or the curl equivient of the above answer is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -u admin:changeme -k &lt;A href="https://localhost:8089/servicesNS/admin/&amp;lt;app&amp;gt;/search/fields/&amp;lt;field-name&amp;gt;/tags" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/&amp;lt;app&amp;gt;/search/fields/&amp;lt;field-name&amp;gt;/tags&lt;/A&gt;  -d"value=ValueToTagHere&amp;amp;add=tag1&amp;amp;add=tag2&amp;amp;delete=tag3&amp;amp;delete=tag4"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Mar 2015 17:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-tag-values-through-REST-API/m-p/69365#M14049</guid>
      <dc:creator>asdfasdf12321</dc:creator>
      <dc:date>2015-03-19T17:17:52Z</dc:date>
    </item>
  </channel>
</rss>

