Splunk Commands : Discussion On "SPATH" command

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2024

ความคิดเห็น • 26

  • @manubelfort9383
    @manubelfort9383 4 ปีที่แล้ว +2

    Undoubtedly one of the best video which I’ve seen

  • @ajayboseac01
    @ajayboseac01 3 ปีที่แล้ว +1

    This has helped me so much in completing a project on time :) !!

  • @rajenderprasad1193
    @rajenderprasad1193 3 ปีที่แล้ว

    Simply awesome.. thank you so much

  • @DHIRENDRASINGH761
    @DHIRENDRASINGH761 5 ปีที่แล้ว

    Another very useful video. 😀
    Thanks

  • @sanketkhunte537
    @sanketkhunte537 4 ปีที่แล้ว

    Thank you nice information. I am looking to change format of datetime field. Like in your example, in last time, you extracted timefield. I want this field without time zone information.
    Can we do field formating/conversion while using spath?
    Please reply

    • @splunk_ml
      @splunk_ml  4 ปีที่แล้ว

      SPATH will extract the field as is...as there is no formatting option there but after the field extraction you can use fieldformat command to format teh field.
      docs.splunk.com/Documentation/Splunk/8.1.0/SearchReference/Fieldformat

  • @suvojitchakraborty2516
    @suvojitchakraborty2516 4 ปีที่แล้ว

    Very Nice Video. Thanks. Can you please elaborate on how to use spath with a structured and unstructured content?

    • @splunk_ml
      @splunk_ml  4 ปีที่แล้ว +1

      when you have structured data like json,xml you dont need the spath command as splunk inbuilt sourcetype is sufficient enough to extract fields...in certain scenarios where splunk is not able to extract field you can use spath to exttract fields from the structured data.
      for unstructured data any way you need to use regex for the field extraction.

  • @ChazBword
    @ChazBword 4 ปีที่แล้ว

    I love your videos

  • @boviku
    @boviku 4 ปีที่แล้ว

    Another great explanation. Thanks for the video. In addition, how do I align the multi-line XML into single line ?

    • @splunk_ml
      @splunk_ml  4 ปีที่แล้ว

      Did you mean that you want to create multi line xml events ?

  • @devmudila
    @devmudila 2 ปีที่แล้ว

    Great explanation!! Thank you so much for the video. I have a question as well. Can we extract a particular value from JSON data by passing a keyvalue instead of particular index value?

    • @splunk_ml
      @splunk_ml  2 ปีที่แล้ว +1

      Using SPATH we are doing that one only....but when it comes to JSON array and if you need to extract a specific field from an array element you need to use index value.

    • @devmudila
      @devmudila 2 ปีที่แล้ว

      @@splunk_ml Thank you for the reply. In my scenario, index is not fixed. I only know the key-value and want to fetch that particular value from the JSON data so that only this value is shown in the column instead of all the value from JSON data (multi-value column).

  • @jpalacian
    @jpalacian 5 ปีที่แล้ว

    Hi! Amazing channel, thanks! Are you going to publish any video about Splunk ITSI App?

    • @splunk_ml
      @splunk_ml  5 ปีที่แล้ว +5

      I wanted to but its not free 😔. I am checking with splunk if they can provide me sandbox system for longer time.

  • @aadhiksmartpants
    @aadhiksmartpants 4 ปีที่แล้ว

    Thank you!

  • @minpandey-yo7rx
    @minpandey-yo7rx ปีที่แล้ว

    Great

  • @thegiantpuppy8768
    @thegiantpuppy8768 4 ปีที่แล้ว

    Thank you sir!!!

  • @shashanksekhar2048
    @shashanksekhar2048 3 ปีที่แล้ว

    Hi Sid...one doubt ..please help me...my data is looking like
    Mar 25 10:21:58 server-name apimanagrment[-]: { "name":"sai", "age":25....}
    On this data if I am using
    index=* | spath
    It's not extracting those name and age fields...
    Howerver if I use
    Index=* I extract pairdelim="," kvdelim=":"
    It is estracting fields properly...
    I don't want to use extract as I have much data and also it will extarcts all fields ...I want to use spath based on my requirement fileds..
    But why that above spath it's not extracting anything?? Please guide me... however if I use spath on particular field it's working ... not working on raw data..

    • @splunk_ml
      @splunk_ml  3 ปีที่แล้ว +1

      The problem is your raw data is not proper JSON. Thats why its not working. Better to use rex in this case to extract name, age.

    • @shashanksekhar2048
      @shashanksekhar2048 3 ปีที่แล้ว

      @@splunk_ml Thanq so much..I tested with rex, it is working fine.

  • @happyBongGirl
    @happyBongGirl 5 ปีที่แล้ว

    Thanks for this one. I have a suggestion, if you can start a series on Splunk MLTK.

    • @splunk_ml
      @splunk_ml  5 ปีที่แล้ว +1

      Yes I will be covering that gradually. Initially I will be covering the theory part.