<?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 rename dynamic input results in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-rename-dynamic-input-results/m-p/404599#M71825</link>
    <description>&lt;P&gt;Hi @lyf1995123  ,&lt;/P&gt;

&lt;P&gt;Did you have a chance to check out an answer? If it worked, please resolve this post by approving it! If your problem is still not solved, keep us updated so that someone else can help you. &lt;/P&gt;

&lt;P&gt;Thanks for posting!&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2019 15:49:20 GMT</pubDate>
    <dc:creator>evania</dc:creator>
    <dc:date>2019-06-07T15:49:20Z</dc:date>
    <item>
      <title>How to rename dynamic input results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-rename-dynamic-input-results/m-p/404597#M71823</link>
      <description>&lt;P&gt;Sorry, I am new to Splunk. Now I use a dynamic dropdown to generate all the results, like below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=dev-app host=hadoopdn* $importids$ $batchids$ $stages$ |stats count by groupName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now the query result is like: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FileSystemCounters   10
*.FileType        14
*.StatsCounters      3
*$Counter           6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem is the prefix is too long to display. &lt;BR /&gt;
Is there a way that can only display the latter part? &lt;BR /&gt;
Like "StatsCounters" instead of "*.StatsCounters" &lt;BR /&gt;
Maybe use an alias?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 22:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-rename-dynamic-input-results/m-p/404597#M71823</guid>
      <dc:creator>lyf1995123</dc:creator>
      <dc:date>2019-06-04T22:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename dynamic input results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-rename-dynamic-input-results/m-p/404598#M71824</link>
      <description>&lt;P&gt;@lyf1995123,&lt;/P&gt;

&lt;P&gt;If you have a pattern in the group name , you could use &lt;CODE&gt;regex&lt;/CODE&gt; to extract it.&lt;/P&gt;

&lt;P&gt;For e.g. from your above examples&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     index=dev-app host=hadoopdn* $importids$ $batchids$ $stages$ |stats count by groupName
    | rex field=groupName "\*?[.$]?(?&amp;lt;groupName &amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jun 2019 02:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-rename-dynamic-input-results/m-p/404598#M71824</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-06-05T02:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename dynamic input results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-rename-dynamic-input-results/m-p/404599#M71825</link>
      <description>&lt;P&gt;Hi @lyf1995123  ,&lt;/P&gt;

&lt;P&gt;Did you have a chance to check out an answer? If it worked, please resolve this post by approving it! If your problem is still not solved, keep us updated so that someone else can help you. &lt;/P&gt;

&lt;P&gt;Thanks for posting!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 15:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-rename-dynamic-input-results/m-p/404599#M71825</guid>
      <dc:creator>evania</dc:creator>
      <dc:date>2019-06-07T15:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename dynamic input results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-rename-dynamic-input-results/m-p/404600#M71826</link>
      <description>&lt;P&gt;Inspired by your answer, I think what I am looking for is like "stats count by groupName |rex field=groupName mode=sed "s/^\w.+./""/g"".&lt;BR /&gt;
And it worked as I expected. But thanks still.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 16:21:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-rename-dynamic-input-results/m-p/404600#M71826</guid>
      <dc:creator>lyf1995123</dc:creator>
      <dc:date>2019-06-07T16:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename dynamic input results</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-rename-dynamic-input-results/m-p/404601#M71827</link>
      <description>&lt;P&gt;What I want is the result generated like this: stats count by groupName |rex field=groupName mode=sed "s/^\w.+./""/g"&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 16:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-rename-dynamic-input-results/m-p/404601#M71827</guid>
      <dc:creator>lyf1995123</dc:creator>
      <dc:date>2019-06-07T16:22:47Z</dc:date>
    </item>
  </channel>
</rss>

