<?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 can I select only first line of a field to display in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/How-can-I-select-only-first-line-of-a-field-to-display/m-p/630599#M2632</link>
    <description>&lt;P&gt;mvindex works, THANKS! my bash script collects the log, I am still investigating why field gets doubled.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2023 07:25:09 GMT</pubDate>
    <dc:creator>a1bg503461</dc:creator>
    <dc:date>2023-02-13T07:25:09Z</dc:date>
    <item>
      <title>How can I select only first line of a field to display</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/How-can-I-select-only-first-line-of-a-field-to-display/m-p/630080#M2629</link>
      <description>&lt;P&gt;I am working on a KPI script and I need to deduplicate lines in the field&amp;nbsp;&lt;BR /&gt;Looks like this :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="278.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23775iD4008AE6B2C9D129/image-size/large?v=v2&amp;amp;px=999" role="button" title="278.PNG" alt="278.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;is there an | eval field= substr for first line of field&amp;nbsp; or some regex that can deduplicate my values. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/How-can-I-select-only-first-line-of-a-field-to-display/m-p/630080#M2629</guid>
      <dc:creator>a1bg503461</dc:creator>
      <dc:date>2023-02-08T11:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select only first line of a field to display</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/How-can-I-select-only-first-line-of-a-field-to-display/m-p/630090#M2630</link>
      <description>&lt;P&gt;Are these multi-value fields?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval queue=mvindex(queue, 0)
| eval value=mvindex(value, 0)&lt;/LI-CODE&gt;&lt;P&gt;If not, how did you get the values, perhaps they can be dedup'd before this point?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 12:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/How-can-I-select-only-first-line-of-a-field-to-display/m-p/630090#M2630</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-08T12:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select only first line of a field to display</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/How-can-I-select-only-first-line-of-a-field-to-display/m-p/630582#M2631</link>
      <description>&lt;P&gt;If you are getting these results from stats. You can try using latest function like below. However, it would be easier to address your question if you can share how you got this result.&lt;BR /&gt;&lt;BR /&gt;|stats latest(queue) values(value) by some_other_field&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 04:28:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/How-can-I-select-only-first-line-of-a-field-to-display/m-p/630582#M2631</guid>
      <dc:creator>Farheen</dc:creator>
      <dc:date>2023-02-13T04:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select only first line of a field to display</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/How-can-I-select-only-first-line-of-a-field-to-display/m-p/630599#M2632</link>
      <description>&lt;P&gt;mvindex works, THANKS! my bash script collects the log, I am still investigating why field gets doubled.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 07:25:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/How-can-I-select-only-first-line-of-a-field-to-display/m-p/630599#M2632</guid>
      <dc:creator>a1bg503461</dc:creator>
      <dc:date>2023-02-13T07:25:09Z</dc:date>
    </item>
  </channel>
</rss>

